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:24:34 -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 12:20 AM, Masaki Saito wrote:
> Thanks Pierre, Greg.
> 
> I had thought that `nothing' is same as null string.

Nothing (no word at all) is not the same as a null string ("").

> But manual says that preamble and postscript are optional.
> So I thought that like bellow.
> {,c} is a same format as a{,c} except preamble.
> So these generate two strings.

No.  This generates one word.

Chet
-- 
``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]