]> git.lizzy.rs Git - plan9front.git/commitdiff
win: bind the text file properly instead of a special case in "
authorspew <devnull@localhost>
Thu, 2 Aug 2018 18:21:19 +0000 (14:21 -0400)
committerspew <devnull@localhost>
Thu, 2 Aug 2018 18:21:19 +0000 (14:21 -0400)
acme/bin/source/win/main.c
rc/bin/"

index 214356a4827097a338b2669d9f95343b2c051853..9748f5db18399113a2ebd2eccd0839b09ca2452b 100644 (file)
@@ -634,6 +634,7 @@ startcmd(char *argv[], int *notepg)
        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);
index bb6cd5eec9b2e3ddfcc7f72e0bfd40d1df87726a..4cae3cc61c8168d6b21680711b3dfa5351e6433d 100755 (executable)
--- 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 {