shithub: x

Download patch

ref: 70cc21bcb5179d02b5f4d2adf3e5d3b6ce1d0830
parent: 34e4cb86ff7e46c19965eb34336179d1feac993e
author: kvik <kvik@a-b.xyz>
date: Sun Jun 23 07:55:47 EDT 2019

x/run: formatting

--- a/run
+++ b/run
@@ -1,6 +1,8 @@
 #!/bin/rc
 rfork e
 rpath=`{x/path -P}
-cmd=$"*
-cmd=`{awk 'BEGIN{printf("sh -c ''cd %s; %s''", ENVIRON["rpath"], ENVIRON["cmd"])}'}
+cmd=`{awk 'BEGIN{
+	printf("$SHELL -c ''cd %s; %s''",
+		ENVIRON["rpath"], ENVIRON["*"])
+}'}
 ssh `{x/path -l} $"cmd