shithub: purgatorio

Download patch

ref: 51bf59e016b43f16ec91943829af30d99a886cc1
parent: 54bac038f411c10a596adf84c06df32f8c7c4c53
author: henesy <devnull@localhost>
date: Sun May 30 20: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 {