Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Disowned command killed when piping NUL character



I notice the following inconsistency in behavior. Is it indeed a bug? The async job with the \0 doesn't print "hello" while the other two commands do.

% { print |read line; echo hello } &!
% hello

% { print '\0'|read -d $'\0' line; echo hello } &!
% print '\0'|read -d $'\0' line; echo hello
hello

With zsh 5.8.1 (x86_64-ubuntu-linux-gnu) and an empty ~/.zshrc.

--
Johan




Messages sorted by: Reverse Date, Date, Thread, Author