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 c...@case.edu http://tiswww.cwru.edu/~chet/
signature.asc
Description: OpenPGP digital signature