Document argument reuse behavior in 'help printf'?

2012-12-05 Thread Ulf Magnusson
Only the manual mentions that "the format is reused as necessary to consume all of the arguments"; it would be nice if this was in 'help printf' too. /Ulf

Re: Some globstar patterns produce duplicate entries and a null filename

2012-12-02 Thread Ulf Magnusson
On Sun, Dec 2, 2012 at 5:42 PM, Ulf Magnusson wrote: > On Sun, Dec 2, 2012 at 5:40 PM, Ulf Magnusson wrote: >> On Sun, Dec 2, 2012 at 4:58 PM, Roman Rakus wrote: >>> On 12/01/2012 04:41 PM, Ulf Magnusson wrote: >>>> >>>> GNU bash, version 4.2.24(1)-rele

Re: Some globstar patterns produce duplicate entries and a null filename

2012-12-02 Thread Ulf Magnusson
On Sun, Dec 2, 2012 at 5:40 PM, Ulf Magnusson wrote: > On Sun, Dec 2, 2012 at 4:58 PM, Roman Rakus wrote: >> On 12/01/2012 04:41 PM, Ulf Magnusson wrote: >>> >>> GNU bash, version 4.2.24(1)-release (i686-pc-linux-gnu) >>> >>> Take the following exa

Re: Some globstar patterns produce duplicate entries and a null filename

2012-12-02 Thread Ulf Magnusson
On Sun, Dec 2, 2012 at 4:58 PM, Roman Rakus wrote: > On 12/01/2012 04:41 PM, Ulf Magnusson wrote: >> >> GNU bash, version 4.2.24(1)-release (i686-pc-linux-gnu) >> >> Take the following example, assumed to be run in an empty directory: >> >> $ mkdir a >

Some globstar patterns produce duplicate entries and a null filename

2012-12-01 Thread Ulf Magnusson
GNU bash, version 4.2.24(1)-release (i686-pc-linux-gnu) Take the following example, assumed to be run in an empty directory: $ mkdir a $ echo ** a $ echo **/** a a $ echo **/**/** a a a I would expect the result to be just 'a' in all cases. You also get back a null filename, as shown by $ fo