Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

History quoting again



Remind me why we can't implement :q by tokenizing rather than by actually
inserting quotes into the string?

Here's tcsh:

[schaefer@candle]$ echo '"'
"
[schaefer@candle]$ echo "!!:q"
echo "echo '"'"
echo '"'
[schaefer@candle]$

Now here's zsh:

zagzig% echo '"'
"
zagzig% echo "!!:q"
dquote> <send-break>
echo "'echo' ''\''"'\'''"
zagzig% 

(Never mind why tcsh thinks hostname is candle but zsh thinks it's zagzig.)

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author