shithub: x

Download patch

ref: 830794964190b930e753533a4631573eda128c78
parent: 7760194f148720cc9d9432d47090ad4f1954a297
author: kvik <kvik@a-b.xyz>
date: Mon May 4 11:03:23 EDT 2020

New command prototype x/sh

x/sh creates a make-believe interactive remote shell session.
It is indeed not interactive, namely cd(1) only works for the
duration of a single call.

--- a/mkfile
+++ b/mkfile
@@ -1,7 +1,7 @@
 BIN=/bin
 MAN=/sys/man
 LIB=/sys/lib
-RC=path run mnt cd man vt
+RC=path run mnt cd man vt sh
 
 all:VQ:
 	echo 'An unsightly package appears: "Meal, Mk-install-to-Eat."'
--- /dev/null
+++ b/sh
@@ -1,0 +1,3 @@
+#!/bin/rc
+while(echo -n '; '; ln = `{read})
+	x/run $ln