Re: A Tricky quoting problem

From: Alon (noSpam_at_hotmail.com)
Date: 05/30/04


Date: Sun, 30 May 2004 15:57:18 +0300

It worked for you because you did "set backslash_quote" before running the
command.
Try the following:

>unset backslash_quote
>set backslash_quote ; alias catXML 'cat \!* | sed -e
\'s/[ ]*["][ ]*/ABC/g\''

Regards,
Alon

"Peter J. Acklam" <pjacklam@online.no> wrote in message
news:3c5iduxo.fsf@online.no...
> "Alon" <noSpam@hotmail.com> wrote:
>
> > How can you use the set backslash_quote in the same command as the alias
> > catXML?
> >
> > I've tried the following:
> > set backslash_quote ; alias catXML xxx
> >
> > And it didn't work.
>
> How did it not work? It works for me:
>
> > set backslash_quote ; alias catXML 'cat \!* | sed -e
\'s/[ ]*["][ ]*/ABC/g\''
> > alias catXML
> cat !* | sed -e 's/[ ]*["][ ]*/ABC/g'
>
> Peter
>
> --
> Peter J. Acklam - pjacklam@online.no - http://home.online.no/~pjacklam