Blame SOURCES/ksh-20120801-parserfix.patch

1a53a7
--- ksh_20120801/src/cmd/ksh93/sh/lex.c	2012-06-12 21:05:18.000000000 +0200
1a53a7
+++ ksh_20120801/src/cmd/ksh93/sh/lex.c	2015-08-18 17:42:06.138076565 +0200
1a53a7
@@ -1603,7 +1603,14 @@ static int comsub(register Lex_t *lp, in
1a53a7
 				if(n==4)
1a53a7
 					break;
1a53a7
 				if(sh_lexstates[ST_NAME][c])
1a53a7
+				{
1a53a7
+					if(c==' ' || c=='\t')
1a53a7
+					{
1a53a7
+						n = 0;
1a53a7
+						continue;
1a53a7
+					}
1a53a7
 					goto skip;
1a53a7
+				}
1a53a7
 				word[n++] = c;
1a53a7
 			}
1a53a7
 			if(sh_lexstates[ST_NAME][c]==S_BREAK)
1a53a7
--- ksh_20120801/src/cmd/ksh93/tests/subshell.sh	2012-07-25 23:40:29.000000000 +0200
1a53a7
+++ ksh_20120801/src/cmd/ksh93/tests/subshell.sh	2015-08-18 17:42:06.143076553 +0200
1a53a7
@@ -617,4 +617,6 @@ do	if	[[ -e $f ]]
1a53a7
 	fi
1a53a7
 done
1a53a7
 
1a53a7
+$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'
1a53a7
+
1a53a7
 exit $((Errors<125?Errors:125))