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

--tree and --recursive options shouldn't dereference symlinks by default #637

Closed
BenFradella opened this issue Mar 15, 2022 · 0 comments · Fixed by #638
Closed

--tree and --recursive options shouldn't dereference symlinks by default #637

BenFradella opened this issue Mar 15, 2022 · 0 comments · Fixed by #638
Labels
kind/bug Something isn't working

Comments

@BenFradella
Copy link

BenFradella commented Mar 15, 2022

  • Arch Linux:
  • lsd 0.21.0:
  • xterm-256color:
  • (no LS_COLORS):

Expected behavior

lsd should not follow symlinks recursively unless explicitly told to do so, with the -L option.

This would mimic the way ls --recursive, tree, and find work with their default arguments.

Actual behavior

Running lsd --recursive or lsd --tree on a directory with looping symlinks (i.e. sysfs directories) will hang because lsd always follows the symlinks recursively

@meain meain added the kind/bug Something isn't working label Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants