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

Re: what is > ?



On Sat, Dec 02, 2000 at 01:27:24PM +0000, Colin Watson wrote:
> Harry Henry Gebel <hgebel@magpage.com> wrote:
> >The single quote retains it's special meaning because otherwise you
> >would have no way to stop typing the argument, the backslash retains
> >it's special meaning in case you have to insert a single quote
> >character into the argument.
> 
> Actually, backslashes lose their special meaning inside single quotes in
> bash:
> 
>   [cjw44@riva ~]$ echo '\\\' 
>   \\\

Guess that shows I shouldn't make assumptions. So if you want to pass in a
single quote you need to do this:

hgebel@elroy:~$ echo '\\\'"'"'\\\'
\\\'\\\

-- 
Harry Henry Gebel, ICQ# 76308382
West Dover Hundred, Delaware



Reply to: