bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash 5: globstar (sometimes) no longer prints symlinks to directorie


From: Chet Ramey
Subject: Re: bash 5: globstar (sometimes) no longer prints symlinks to directories
Date: Mon, 8 Apr 2019 16:15:01 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

On 4/8/19 12:57 PM, Eli Schwartz wrote:
> wwww. The `globstar' code now skips over symbolic links to directories,
>       preventing them from being scanned twice.
> 
> What is the purpose of this change? In bash 4.4, if I wanted to print
> all the entries in a directory tree, whether it is a file, directory, or
> symbolic link, I could use shopt -s globstar && printf %s\\n **

You would get duplicates that you would have to filter, since the `**'
would traverse both a symlink to a directory and the directory itself.

For example:

http://lists.gnu.org/archive/html/bug-bash/2018-04/msg00056.html

However, I agree you're right that the symlink itself should be printed.
I'll take a look at that.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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