Re: A Tricky quoting problem

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


Date: Sun, 30 May 2004 12:17:12 +0300

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.

"Alon" <noSpam@hotmail.com> wrote in message
news:1085907170.686458@sointsocks...
> Thanks alot!
>
> I didn't know about the set backslash_quote
> That solved the problem.
>
>
> "Peter J. Acklam" <pjacklam@online.no> wrote in message
> news:lljae2fk.fsf@online.no...
> > "Alon" <noSpam@hotmail.com> wrote:
> >
> > > The following does not work:
> > > alias catXML "cat \!* | sed -e 's/[ ]*["][ ]*/ABC/g' "
> > >
> > > I want that eventually:
> > > catXML= cat \!* | sed -e 's/[ ]*["][ ]*/ABC/g'
> >
> > How about
> >
> > > alias catXML 'cat \!* | sed -e "s/[ ]*[\"][ ]*/ABC/g"'
> > > alias catXML
> > cat !* | sed -e "s/[ ]*["][ ]*/ABC/g"
> >
> > or, with tcsh,
> >
> > > 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
>
>