21sh icon indicating copy to clipboard operation
21sh copied to clipboard

Pipe redirection

Open ghost opened this issue 4 years ago • 0 comments

Input is broken for next commands if tou type cat | ls or sort | ls Because cat and sort waits input from stdin, when ls ends, your shell waits for next command but cat / sort keeps reading stdin, so half of user input goes into those processes.

Bash will print ls result, wait cat / sort to end and will then wait for next command. Note that ctrl-c signal stop your cat / sort process and fix the issue until next broken command

ghost avatar Apr 15 '20 10:04 ghost