shithub: regress

Download patch

ref: 5f20f26e577847ba986edb7c0c2549976640c95c
parent: ac7c8364ea8f5992e6e56d6f0073869bcf64bb0d
author: Michael Forney <mforney@mforney.org>
date: Tue Mar 8 11:56:09 EST 2022

fix die function

exit expects exactly one argument.

--- a/cmd/util.rc
+++ b/cmd/util.rc
@@ -8,7 +8,8 @@
 fn die {
 	st=$status
 	if(! ~ $st ''){
-		echo $* : $st
-		exit $* : $st
+		*=($* : $st)
+		echo $"*
+		exit $"*
 	}
 }