code: 9ferno

Download patch

ref: ce5b785b9891f5e8d1e2661dbe8d2578fcf2bd83
parent: eb81a50383aca3b30ce3687f5daf7a86c68abae2
author: henesy <unknown>
date: Mon May 31 03:56:13 EDT 2021

revert - breaks profile load

--- a/appl/cmd/sh/sh.b
+++ b/appl/cmd/sh/sh.b
@@ -751,7 +751,7 @@
 		disfile = 1;
 
 	if (absolute(progname))
-		pathlist = list of {""};
+		pathlist = nil;
 
 	else if ((pl := ctxt.get("path")) != nil)
 		pathlist = list2stringlist(pl);
@@ -1940,8 +1940,8 @@
 	ctxt.push();
 	{
 		ctxt.setoptions(ctxt.INTERACTIVE, 0);
-		path := pathexpand(ctxt, (hd tl args).word);
-		runscript(ctxt, path, tl tl args, 1);
+		#path := pathexpand(ctxt, (hd tl args).word);
+		runscript(ctxt, (hd tl args).word, tl tl args, 1);
 		ctxt.pop();
 		return nil;
 	} exception e {