[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Following symlinks in globstar (part 2)
From: |
Chet Ramey |
Subject: |
Re: Following symlinks in globstar (part 2) |
Date: |
Wed, 11 Apr 2018 11:53:20 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
On 4/11/18 11:51 AM, Murukesh Mohanan wrote:
> Yep, sorry about that, c.c is selected:
>
> $ bash -c '(shopt -s globstar; d=$(mktemp -d); cd "$d"; mkdir a; ln -s a b;
> touch a/a.c c.c; echo **/*.c; cd ..; rm -r "$d")'
> a/a.c b/a.c c.c
>
> Is there a chance of having ** not select symlinks to directories, so that
> b/c.c doesn't show up in the output?
Yes, I'm looking 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/