-
Notifications
You must be signed in to change notification settings - Fork 2k
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
psub does not allow cooperative multitasking #2348
Comments
The following works.
and when you exit
Maybe |
That's what psub is supposed to do unless invoked with the "-f"/"--file" option, but there's a bug. Try again with a17b9fd. |
Oh, we actually already have a bug about this: #1040. Closing this as a duplicate. |
Actually, this is isn't #1040, its much more along the lines of #238 - #563 - #1396. Using your example @kwaze, we can reproduce the same issue without sub with something like: mkfifo numbers.fifo
function yesawk
yes | awk '{print NR}'
end
yesawk > numbers.fifo &
... # hang Which is definitely a big annoying fish bug. However, for your particular case, why is yes | awk '{print NR}' | less -f insufficient? Process substitution is always icky, even in other shells. Its all about the pipeline! 😉 |
In your Bash prompt enter
less -f <(yes | awk '{print NR}')
. Compare that toless (yes | awk '{print NR}' | psub)
in Fish which makes the shell freeze.The text was updated successfully, but these errors were encountered: