lsd icon indicating copy to clipboard operation
lsd copied to clipboard

lsd does not exit on closed pipes

Open PythonCoderAS opened this issue 3 years ago • 0 comments

  • os:
  • lsd --version: lsd 0.21.0
  • echo $TERM: xterm-256color
  • echo $LS_COLORS:
zsh: correct '$LS_COLORS' to '$LSCOLORS' [nyae]? y
Gxfxcxdxbxegedabagacad

Expected behavior

When piping to a program that exist, lsd will continue running until reading (all) paths is done. This is a problem when using the recursive flag, as lsd will recurse all directories than exit.

lsd -lR / | bash -c 'exit'
```: This command will go on until all paths are consumed, which takes a lot of time and memory.

```bash
/bin/ls -lR / | bash -c 'exit'
```: This command exits in less than a second.

## Actual behavior
Noted above

PythonCoderAS avatar Jun 11 '22 19:06 PythonCoderAS