Skip to content

Fix 666#669

Closed
frandiox wants to merge 8 commits intoshelljs:masterfrom
frandiox:fix-666
Closed

Fix 666#669
frandiox wants to merge 8 commits intoshelljs:masterfrom
frandiox:fix-666

Conversation

@frandiox
Copy link
Copy Markdown
Contributor

This PR continues #665 and fixes #666.

From node-glob repo:

Note that symlinked directories are not crawled as part of a **, though their contents may match against subsequent portions of the pattern. This prevents infinite loops and duplicates and the like.

Therefore, the current pattern (/**/*) takes the first level of files inside symlinked directories. This PR changes it to /** which does not follow symlinks.

Now both ls and find only show the symlink directory as a single entry. ls -RL follows it.

@nfischer
Copy link
Copy Markdown
Member

@frankdiox Let's wait until #665 is merged. Then please rebase this off master and I'll take another look.

@frandiox
Copy link
Copy Markdown
Contributor Author

@nfischer 👍
I made a new PR with this commit: #676
Closing this one now.

@frandiox frandiox closed this Feb 28, 2017
@nfischer
Copy link
Copy Markdown
Member

@frandiox for future reference, you can rebase locally and do a git push -f to the same PR 😄

@frandiox
Copy link
Copy Markdown
Contributor Author

@nfischer Thanks, just wanted to make it easier to follow in a new PR. The commit is cherry picked from this one anyway 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Difference between bash ls -R and ShellJS ls -R with symlinks

2 participants