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