/rc/bin/", /rc/bin/"": handle the venerable ; prompt

This commit is contained in:
stanley lieber 2013-11-07 14:01:42 -05:00
parent b0a61bc091
commit 82663f62be
2 changed files with 2 additions and 2 deletions

View file

@ -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/^/ /'

View file

@ -1,6 +1,6 @@
#!/bin/rc
PROMPT='[^ ]*%+[ ]+'
PROMPT='[^ ]*(%|;)+[ ]+'
_x = `{" $* | tail -1}
if(~ $#_x 0) {