]> git.lizzy.rs Git - plan9front.git/blobdiff - rc/bin/""
fstype: make copy of first sector in /env to avoid unaligned reads on the disk (for...
[plan9front.git] / rc / bin / ""
index 0db19cde5dc8895d7834c02d231a327ec0ef8c00..d5089583cdd61d52cbf69302bde844238a43241b 100755 (executable)
--- a/rc/bin/""
+++ b/rc/bin/""
@@ -1,6 +1,6 @@
 #!/bin/rc
 
-PROMPT='[^     ]*%+[   ]+'
+PROMPT='[^     ]*(%|;)+[       ]+'
 
 _x = `{" $* | tail -1}
 if(~ $#_x 0) {
@@ -9,5 +9,5 @@ if(~ $#_x 0) {
 }
 
 echo ' ' $_x
-_x=`{ echo -n 'eval '; echo $_x | sed 's/^'$PROMPT'//'}
+_x=`{ echo -n 'eval '''; echo $_x | sed 's/^'$PROMPT'//; s/''/''''/g; s/$/''/'}
 rc -c $"_x