help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Brace expansion with empty args


From: Chet Ramey
Subject: Re: [Help-bash] Brace expansion with empty args
Date: Tue, 25 Jun 2013 10:25:33 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130509 Thunderbird/17.0.6

On 6/14/13 8:51 AM, Pierre Gaston wrote:
>
> From the previous discussions about {} on bug-bash, brace expansion is
> a textual thing.
> So I guess it's just that ''{,} result in the text '' '', while {,}
> results in not text, or perhaps in a whitespace

{,} results in nothing: it disappears.  "echo {,}" results in echo seeing
no arguments at all.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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