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

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