related to 1004BF041CB522EEEE3 ${foo[*]} is a vector too; add testcases

This commit is contained in:
tg
2010-05-16 19:17:42 +00:00
parent f24e2c80a9
commit 549c510269
2 changed files with 20 additions and 2 deletions

4
eval.c
View File

@@ -22,7 +22,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/eval.c,v 1.88 2010/05/16 19:04:41 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/eval.c,v 1.89 2010/05/16 19:17:42 tg Exp $");
/*
* string expansion
@@ -1045,6 +1045,8 @@ varsub(Expand *xp, const char *sp, const char *word,
case '%': /* can't trim a vector (yet) */
case '#':
case '?':
case '0':
case '/':
return (-1);
}
XPinit(wv, 32);