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: Roman Rakus
Subject: Re: [Help-bash] Brace expansion with empty args
Date: Fri, 14 Jun 2013 12:37:25 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4

On 06/14/13 06:20, Masaki Saito wrote:
Thanks Pierre, Greg.

I had thought that `nothing' is same as 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.
a{,c} generates 'a', 'IFS' and 'ac',
{,c} generates '', 'IFS' and 'c'.
That is incorrect...
What's different about nothing and null string?

Sorry, my name is garbled.
Masaki

In fact it generates null string, but word splitting will erase it. (at least I believe in it)

RR



reply via email to

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