[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: what is > ?

Harry Henry Gebel <hgebel@magpage.com> 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:
>>   [cjw44@riva ~]$ 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:
>hgebel@elroy:~$ echo '\\\'"'"'\\\'

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

Colin Watson                                     [cjw44@flatline.org.uk]

Reply to: