[ale] expanding $(echo -e "$word\t$word")
James P. Kinney III
jkinney at localnetsolutions.com
Sat Jan 26 08:48:24 EST 2002
That doesn't work.
[jkinney at archimedes jkinney]$ rpm -q bash
bash-2.04-21
[jkinney at archimedes jkinney]$ export word="test"
[jkinney at archimedes jkinney]$ echo $word
test
[jkinney at archimedes jkinney]$ export line="$word\t$word"
[jkinney at archimedes jkinney]$ echo "$line"
test\ttest
[jkinney at archimedes jkinney]$ echo $line
test\ttest
On Sat, 2002-01-26 at 08:40, Geoffrey wrote:
> I think you're working too hard on it
>
> line="$word\t$word"
>
> as long as you print $line with quotes around it as in:
>
> echo "$line"
>
> You should get your tab as expected
>
> David S. Jackson wrote:
>
> > When I go line=`echo -e $word"\t"$word`; echo $line I only get a
> > single space for the \t. I've tried the following to no avail:
> >
> > line=$(echo -e $word"\t"$word)
> > line=`echo -e "$word\t$word"`
> > line=`echo -e $word"\t"$word`
> >
> > and they all expand to only one space. I want the \t to expand
> > to a full tab space. What am I doing wrong? (Using bash 2.x).
> >
> > TIA.
> >
> >
>
>
> --
> Until later: Geoffrey esoteric at 3times25.net
>
> "...the system (Microsoft passport) carries significant risks to users that
> are not made adequately clear in the technical documentation available."
> - David P. Kormann and Aviel D. Rubin, AT&T Labs - Research
> - http://www.avirubin.com/passport.html
>
>
> ---
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
> sent to listmaster at ale dot org.
>
--
James P. Kinney III \Changing the mobile computing world/
President and COO \ one Linux user /
Local Net Solutions,LLC \ at a time. /
770-493-8244 \.___________________________./
GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
This is a digitally signed message part
More information about the Ale
mailing list