tcsh script: quote and spaces problems

Michael E. Mercer mmercer at nc.rr.com
Thu Jul 31 19:23:36 PDT 2003


ok ok... I noticed one thing while playing with this...

the script hello.sh
#!/bin/tcsh -f

set JUNK='-f "t  "'

echo ">>${JUNK}<<"
echo ">>"${JUNK}"<<"

The first echo prints it -f "t  "
and the second -f "t "

Can you use it with the double quotes around it?

later
MeM


On Thu, 2003-07-31 at 22:12, Michael E. Mercer wrote:
> On Thu, 2003-07-31 at 21:42, Rob Lahaye wrote:
> > When I use
> >    set flag='-f "t  "'
> > 
> 
> When I echo this out, I get what you are wanting...
> can you show us how you are using this, to get the "weird" behavior?
> 
> Thanks
> MeM
> 
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"



More information about the freebsd-questions mailing list