shithub: 9ferno

Download patch

ref: c82de2cdd3aedfef2e1572e5d4c0a37cd85da186
parent: 4790d3a8119e636b8e7562715b1b850c8b22d9ce
author: joe9 <joe9mail@gmail.com>
date: Fri Mar 26 07:39:24 EDT 2021

shell external exec exception captured

--- a/appl/cmd/sh/sh.b
+++ b/appl/cmd/sh/sh.b
@@ -943,10 +943,11 @@
 	startchan <-= sys->pctl(0, nil);
 	{
 		mod->init(drawcontext, argv);
-	}
-	exception {
+	}exception e{
 	EPIPE =>
 		raise "fail:" + EPIPE;
+	* => raise e; # TODO the manual says that leaving this out is
+intentional. Not sure how man pages work without this
 	}
 }