Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

globstar fails to resolve symlink #629

Open
McDutchie opened this issue Apr 7, 2023 · 1 comment
Open

globstar fails to resolve symlink #629

McDutchie opened this issue Apr 7, 2023 · 1 comment
Labels
bug Something is not working

Comments

@McDutchie
Copy link

$ set -G                                                                                                                             
$ mkdir -p test/dir/d{1,2,3,4,5}/foo/bar
$ touch test/dir/d{1,2,3,4,5}/foo/bar/testfile
$ ls -l test/**/testfile   # output OK:
-rw-r--r--  1 martijn  staff  0  8 apr 00:27 test/dir/d1/foo/bar/testfile
-rw-r--r--  1 martijn  staff  0  8 apr 00:27 test/dir/d2/foo/bar/testfile
-rw-r--r--  1 martijn  staff  0  8 apr 00:27 test/dir/d3/foo/bar/testfile
-rw-r--r--  1 martijn  staff  0  8 apr 00:27 test/dir/d4/foo/bar/testfile
-rw-r--r--  1 martijn  staff  0  8 apr 00:27 test/dir/d5/foo/bar/testfile
$ ln -s test link
$ ls -l link/**/testfile   # BUG:
ls: link/**/testfile: No such file or directory
$ ls -l link//**/testfile  # double slash is workaround:
-rw-r--r--  1 martijn  staff  0  8 apr 00:27 link//dir/d1/foo/bar/testfile
-rw-r--r--  1 martijn  staff  0  8 apr 00:27 link//dir/d2/foo/bar/testfile
-rw-r--r--  1 martijn  staff  0  8 apr 00:27 link//dir/d3/foo/bar/testfile
-rw-r--r--  1 martijn  staff  0  8 apr 00:27 link//dir/d4/foo/bar/testfile
-rw-r--r--  1 martijn  staff  0  8 apr 00:27 link//dir/d5/foo/bar/testfile
@McDutchie McDutchie added the bug Something is not working label Apr 7, 2023
@McDutchie
Copy link
Author

Apparently, the fix in aad7459 was incomplete: it fixed symlink/** but not symlink/**/foo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working
Projects
None yet
Development

No branches or pull requests

1 participant