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: Greg Wooledge
Subject: Re: [Help-bash] Brace expansion with empty args
Date: Wed, 12 Jun 2013 08:36:16 -0400
User-agent: Mutt/1.4.2.3i

On Wed, Jun 12, 2013 at 11:13:43AM +0300, Pierre Gaston wrote:
> {,} just expands to two unquoted nothing and results in nothing
> if you quote the nothing you get 2 empty strings:
> 
> $ set ''{,};echo $#
> 2

{,} and ''{,} are not the same.

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

Also:

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



reply via email to

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