shithub: riscv

Download patch

ref: d5347274132c2790b42a7fbacec1969ea817f558
parent: 4757debd0b5935dae94944c35c3cac74b14aa209
author: spew <devnull@localhost>
date: Thu Aug 2 10:21:19 EDT 2018

win: bind the text file properly instead of a special case in "

--- a/acme/bin/source/win/main.c
+++ b/acme/bin/source/win/main.c
@@ -634,6 +634,7 @@
 	e->cpid = cpid;
 	sprint(buf, "/mnt/wsys/%d", win->id);
 	bind(buf, "/dev/acme", MREPL);
+	bind("/dev/acme/body", "/dev/text", MREPL)
 	proccreate(execproc, e, EXECSTACK);
 	do
 		pid = recvul(cpid);
--- a/rc/bin/"
+++ b/rc/bin/"
@@ -2,9 +2,6 @@
 
 rfork en
 
-if(test -r /mnt/acme/acme/body)
-	bind /mnt/acme/acme/body /dev/text
-
 PROMPT='[^ 	]*(%|;)[ 	]+'
 
 fn cmds {