another Debian workaround for /bin/sh: don’t pattern in trims

This commit is contained in:
tg
2011-03-28 08:27:09 +00:00
parent e8ea9954aa
commit e19d8612ad
2 changed files with 14 additions and 7 deletions

4
lex.c
View File

@ -22,7 +22,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.144 2011/03/26 16:11:43 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.145 2011/03/28 08:27:09 tg Exp $");
/*
* states while lexing word
@ -463,7 +463,7 @@ yylex(int cf)
* If this is a trim operation,
* treat (,|,) specially in STBRACE.
*/
if (ctype(c, C_SUBOP2)) {
if (!Flag(FSH) && ctype(c, C_SUBOP2)) {
ungetsc(c);
PUSH_STATE(STBRACE);
} else {