summaryrefslogtreecommitdiff
path: root/rc
diff options
context:
space:
mode:
authorstanley lieber <stanley.lieber@gmail.com>2013-11-07 14:01:42 -0500
committerstanley lieber <stanley.lieber@gmail.com>2013-11-07 14:01:42 -0500
commit82663f62bee0ba0da147711bc3e9c188a75267d0 (patch)
tree3e505354a0693e56d453568d4b467e830d5be7df /rc
parentb0a61bc09119ead66532a7af64c0a018969bb690 (diff)
/rc/bin/", /rc/bin/"": handle the venerable ; prompt
Diffstat (limited to 'rc')
-rwxr-xr-xrc/bin/"2
-rwxr-xr-xrc/bin/""2
2 files changed, 2 insertions, 2 deletions
diff --git a/rc/bin/" b/rc/bin/"
index 56bdaba77..557bedafa 100755
--- a/rc/bin/"
+++ b/rc/bin/"
@@ -5,7 +5,7 @@ rfork en
if(test -r /mnt/acme/acme/body)
bind /mnt/acme/acme/body /dev/text
-PROMPT='[^ ]*%[ ]+'
+PROMPT='[^ ]'*'(%|;)[ ]+'
fn cmds {
grep '^'$PROMPT'[^"]' /dev/text | sed 's/^/ /'
diff --git a/rc/bin/"" b/rc/bin/""
index 0db19cde5..99d88d79b 100755
--- a/rc/bin/""
+++ b/rc/bin/""
@@ -1,6 +1,6 @@
#!/bin/rc
-PROMPT='[^ ]*%+[ ]+'
+PROMPT='[^ ]*(%|;)+[ ]+'
_x = `{" $* | tail -1}
if(~ $#_x 0) {