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

oh-my-zsh messes with zsh process substitution #6951

Closed
fzuviria opened this issue Jun 27, 2018 · 1 comment
Closed

oh-my-zsh messes with zsh process substitution #6951

fzuviria opened this issue Jun 27, 2018 · 1 comment

Comments

@fzuviria
Copy link
Contributor

#!/bin/bash
foo() { cat <(cat "$@"); }; foo <(echo bar);
bar

#!/bin/zsh
foo() { cat <(cat "$@"); }; foo <(echo bar);
cat: /proc/self/fd/11: No such file or directory

This is a bug from zsh ([BUG] process substitution breaks when nested or traverses a function) that has been fixed in version 5.5
HOWEVER, when running that in a zsh shell that uses oh-my-zsh, the bug is still there!

I tried disabling all plugins and the problem persists.

I don't expect you guys to be able to fix this, but please try to give me some insight on what is exactly is triggering this behaviour, because the zsh guys don't have enough info to work on this. So if we can narrow it down to something like, "autoloading a function that does x and y and uses this modules leaves zsh unable to do proper process substitution", will be a lot of help.

Thanks in advance

@fzuviria
Copy link
Contributor Author

My bad, problem still happens with vanilla zsh

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

No branches or pull requests

1 participant