implement ksh93 feature ${ foo;}

This commit is contained in:
tg
2012-07-30 21:37:17 +00:00
parent 8e51bb7a23
commit 9b7b7f742e
10 changed files with 146 additions and 72 deletions

4
var.c
View File

@ -27,7 +27,7 @@
#include <sys/sysctl.h>
#endif
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.152 2012/07/01 15:38:09 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.153 2012/07/30 21:37:17 tg Exp $");
/*-
* Variables
@ -1254,7 +1254,7 @@ unsetspec(struct tbl *vp)
flushcom(true);
break;
case V_IFS:
setctypes(" \t\n", C_IFS);
setctypes(TC_IFSWS, C_IFS);
ifs0 = ' ';
break;
case V_TMPDIR: