|
From: | Roman Rakus |
Subject: | Re: Some globstar patterns produce duplicate entries and a null filename |
Date: | Sun, 02 Dec 2012 16:58:32 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 |
On 12/01/2012 04:41 PM, Ulf Magnusson wrote:
I can't reproduce it on my Fedora with bash 4.2.10 nor 4.2.39. Tried turn on and off extglob shell option. Can you please resend your report with `bashbug' script? Or at least say which linux distribution you are using?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 $ for f in **/**/**; do echo "'$f'"; done '' 'a' 'a' 'a' /Ulf
RR
[Prev in Thread] | Current Thread | [Next in Thread] |