Do I like that? Nope. But if shells were like Perl, then I could do either of the following:
echo q($foo'$bar)
echo "\$foo'\$bar"
and I find the former in particular to be very convenient. If there was only one quote delimiter to choose from, well that is a pain. But with the range of choices in Perl, it is pretty rare to run across a single-quote situation that wouldn't work easily.
OTOH there is no syntax in Perl that gives you a row of backslashes easily. And given the way the rest of Unix works, I often want exactly that (just to pass a single backslash through several layers of interpolation - each of which loses half of them). | [reply] [d/l] |