[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash 5: globstar (sometimes) no longer prints symlinks to directorie
Re: bash 5: globstar (sometimes) no longer prints symlinks to directories
Mon, 8 Apr 2019 16:15:01 -0400
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.
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 address@hidden http://tiswww.cwru.edu/~chet/
Description: OpenPGP digital signature