bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No tilde expansion right after a quotation


From: Angel Tsankov
Subject: Re: No tilde expansion right after a quotation
Date: Mon, 16 Feb 2009 12:20:16 +0200

Dave B wrote:
> Angel Tsankov wrote:
>> Eric, thanks for youy replay.  If double quotes are not that
>> portable, then how am I suppose to assign the output from some
>> command to a variable when the output contains a space?
>
> Word splitting doesn't happen on assignments, so:
>
> $ var=$(echo "foo   bar   baz")
> $ echo "$var"
> foo   bar   baz

Hmm, thanks for pointing this out.

-Angel 







reply via email to

[Prev in Thread] Current Thread [Next in Thread]