ref: 82663f62bee0ba0da147711bc3e9c188a75267d0
parent: b0a61bc09119ead66532a7af64c0a018969bb690
author: stanley lieber <[email protected]>
date: Thu Nov 7 09:01:42 EST 2013
/rc/bin/", /rc/bin/"": handle the venerable ; prompt
--- a/rc/bin/"
+++ b/rc/bin/"
@@ -5,7 +5,7 @@
if(test -r /mnt/acme/acme/body)
bind /mnt/acme/acme/body /dev/text
-PROMPT='[^ ]*%[ ]+'
+PROMPT='[^ ]'*'(%|;)[ ]+'
fn cmds {
grep '^'$PROMPT'[^"]' /dev/text | sed 's/^/ /'
--- a/rc/bin/""
+++ b/rc/bin/""
@@ -1,6 +1,6 @@
#!/bin/rc
-PROMPT='[^ ]*%+[ ]+'
+PROMPT='[^ ]*(%|;)+[ ]+'
_x = `{" $* | tail -1}
if(~ $#_x 0) {