Blame SOURCES/ksh-20120801-parserfix.patch

ff22b9
--- ksh_20120801/src/cmd/ksh93/sh/lex.c	2012-06-12 21:05:18.000000000 +0200
ff22b9
+++ ksh_20120801/src/cmd/ksh93/sh/lex.c	2015-08-18 17:42:06.138076565 +0200
ff22b9
@@ -1603,7 +1603,14 @@ static int comsub(register Lex_t *lp, in
ff22b9
 				if(n==4)
ff22b9
 					break;
ff22b9
 				if(sh_lexstates[ST_NAME][c])
ff22b9
+				{
ff22b9
+					if(c==' ' || c=='\t')
ff22b9
+					{
ff22b9
+						n = 0;
ff22b9
+						continue;
ff22b9
+					}
ff22b9
 					goto skip;
ff22b9
+				}
ff22b9
 				word[n++] = c;
ff22b9
 			}
ff22b9
 			if(sh_lexstates[ST_NAME][c]==S_BREAK)
ff22b9
--- ksh_20120801/src/cmd/ksh93/tests/subshell.sh	2012-07-25 23:40:29.000000000 +0200
ff22b9
+++ ksh_20120801/src/cmd/ksh93/tests/subshell.sh	2015-08-18 17:42:06.143076553 +0200
ff22b9
@@ -617,4 +617,6 @@ do	if	[[ -e $f ]]
ff22b9
 	fi
ff22b9
 done
ff22b9
 
ff22b9
+$SHELL > /dev/null -c 'echo $(for x in whatever; do case y in *) true;; esac; done)' || err_exit 'syntax error with case in command substitution'
ff22b9
+
ff22b9
 exit $((Errors<125?Errors:125))