Re: echo bug?

jellybean stonerfish <[email protected]>
Newsgroups gmane.comp.gnu.utils
Organization AT&T http://yahoo.sbc.com
Message-ID <[email protected]>
On Fri, 07 Dec 2007 18:33:22 -0500, Randy Yates wrote:

> I'm not sure if the problem is echo or the bash shell. 
> 
> echo -e "123\n   456"
> 
> yields the proper spacing. However, 
> 
> text="123\n   456"
> echo $text
> 
> does not. Why not?

try echo -e $text
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.