Harry Henry Gebel <[EMAIL PROTECTED]> wrote:
>On Sat, Dec 02, 2000 at 01:27:24PM +0000, Colin Watson wrote:
>> Actually, backslashes lose their special meaning inside single quotes in
>> bash:
>> 
>>   [EMAIL PROTECTED] ~]$ echo '\\\' 
>>   \\\
>
>Guess that shows I shouldn't make assumptions.

Oddly, they seem to be interpreted in single quotes in ksh. Hmm. Not
sure what that's a bug in, if anything.

>So if you want to pass in a single quote you need to do this:
>
>[EMAIL PROTECTED]:~$ echo '\\\'"'"'\\\'
>\\\'\\\

That's one possibility, yes. I tend to use the '...'\''...' style
myself.

-- 
Colin Watson                                     [EMAIL PROTECTED]

Reply via email to