[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
- Re: No tilde expansion right after a quotation, (continued)
- Re: No tilde expansion right after a quotation, Jon Seymour, 2009/02/15
- Re: No tilde expansion right after a quotation, Paul Jarc, 2009/02/15
- Re: No tilde expansion right after a quotation, Jon Seymour, 2009/02/15
- Re: No tilde expansion right after a quotation, Angel Tsankov, 2009/02/15
- Re: No tilde expansion right after a quotation, Eric Blake, 2009/02/15
- Re: No tilde expansion right after a quotation, Angel Tsankov, 2009/02/16
- Re: No tilde expansion right after a quotation, Dave B, 2009/02/16
- Re: No tilde expansion right after a quotation,
Angel Tsankov <=
- Re: No tilde expansion right after a quotation, Eric Blake, 2009/02/16
- Re: No tilde expansion right after a quotation, Chet Ramey, 2009/02/16