both mksh(1) and POSIX say: "$@" should always generate multiple words

issue in pdksh reported in IRC by engla, thanks!
This commit is contained in:
tg
2013-02-23 20:03:31 +00:00
parent 74e2ef8b0b
commit 817aeb8fdb
5 changed files with 99 additions and 80 deletions

6
sh.h
View File

@@ -164,9 +164,9 @@
#endif
#ifdef EXTERN
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.639 2013/02/19 18:45:22 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.640 2013/02/23 20:03:31 tg Exp $");
#endif
#define MKSH_VERSION "R43 2013/02/19"
#define MKSH_VERSION "R44 2013/02/23"
/* arithmetic types: C implementation */
#if !HAVE_CAN_INTTYPES
@@ -511,7 +511,7 @@ char *ucstrstr(char *, const char *);
#define mkssert(e) do { } while (/* CONSTCOND */ 0)
#endif
#if (!defined(MKSH_BUILDMAKEFILE4BSD) && !defined(MKSH_BUILDSH)) || (MKSH_BUILD_R != 431)
#if (!defined(MKSH_BUILDMAKEFILE4BSD) && !defined(MKSH_BUILDSH)) || (MKSH_BUILD_R != 440)
#error Must run Build.sh to compile this.
int
im_sorry_dave(void)