Skip site navigation (1)Skip section navigation (2)
Date:      31 Jul 2003 22:23:34 -0400
From:      "Michael E. Mercer" <mmercer@nc.rr.com>
To:        Rob Lahaye <lahaye@users.sourceforge.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: tcsh script: quote and spaces problems
Message-ID:  <1059704614.1455.7.camel@dual.mmercer.com>
In-Reply-To: <1059703954.1455.4.camel@dual.mmercer.com>
References:  <3F29C589.4030009@users.sourceforge.net> <1059703954.1455.4.camel@dual.mmercer.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1059704614.1455.7.camel>