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 15:00:36 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4

On 06/14/13 14:54, Greg Wooledge wrote:
On Fri, Jun 14, 2013 at 03:51:37PM +0300, 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
It produces a single null string:

imadev:~$ printf '<%s> ' {,} ; echo
<>

Which is erased:
$ printf '<%s> ' {,} after; echo
<after>
$ printf '<%s> ' ; echo
<>
$ printf '<%s> ' before {,} after; echo
<before> <after>

RR



reply via email to

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