Blame SOURCES/ksh-20120801-unset-param.patch

bd3d17
diff -up ksh-20120801/src/cmd/ksh93/sh/macro.c.bz1222025 ksh-20120801/src/cmd/ksh93/sh/macro.c
bd3d17
--- ksh-20120801/src/cmd/ksh93/sh/macro.c.bz1222025	2015-09-15 17:28:47.304722569 +0200
bd3d17
+++ ksh-20120801/src/cmd/ksh93/sh/macro.c	2015-09-17 17:49:46.842891942 +0200
bd3d17
@@ -1195,6 +1195,13 @@ retry1:
bd3d17
 		}
bd3d17
 		else
bd3d17
 			v = 0;
bd3d17
+		if(!v && sh_isoption(SH_NOUNSET))
bd3d17
+		{
bd3d17
+			d=fcget();
bd3d17
+			fcseek(-1);
bd3d17
+			if(!(d && strchr(":+-?=",d)))
bd3d17
+				errormsg(SH_DICT,ERROR_exit(1),e_notset,ltos(c));
bd3d17
+		}
bd3d17
 		break;
bd3d17
 	    case S_ALP:
bd3d17
 		if(c=='.' && type==0)