[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: echo bug?
From: |
Randy Yates |
Subject: |
Re: echo bug? |
Date: |
Sun, 09 Dec 2007 22:19:36 -0500 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) XEmacs/21.4.20 (linux) |
prj@po.cwru.edu (Paul Jarc) writes:
> Randy Yates <yates@ieee.org> wrote:
>> Sorry - that's what I meant to type. That is to say, "echo -e $text$"
>> doesn't work.
>
> Without knowing what "doesn't work" is supposed to mean,
Oh, I think it's pretty clear to anyone with a reasonable intellect.
> and guessing
> that last "$" was a typo,
Good guess!
> I think what you're missing is that variable
> expansions that aren't quoted are subject to word splitting at
> whitespace.
Is it the shell itself that performs this word splitting or
the echo command?
> If you want to preserve the whitespace in a variable's
> value, you have to quote it when expanding it:
> echo -e "$text"
I thank you for that valuable piece of information!
--
% Randy Yates % "Ticket to the moon, flight leaves here today
%% Fuquay-Varina, NC % from Satellite 2"
%%% 919-577-9882 % 'Ticket To The Moon'
%%%% <yates@ieee.org> % *Time*, Electric Light Orchestra
http://www.digitalsignallabs.com
- echo bug?, Randy Yates, 2007/12/09
- Re: echo bug?, jellybean stonerfish, 2007/12/09
- Re: echo bug?, Randy Yates, 2007/12/09
- Re: echo bug?, Paul Jarc, 2007/12/09
- Message not available
- Re: echo bug?,
Randy Yates <=
- Re: echo bug?, Paul Jarc, 2007/12/09
- Message not available
- Re: echo bug?, Randy Yates, 2007/12/10
- Re: echo bug?, Paul Jarc, 2007/12/10
- Message not available
- Re: echo bug?, Randy Yates, 2007/12/10
- Re: echo bug?, Randy Yates, 2007/12/10