From: Johan Grande <nahoj@crans.org>
To: zsh-workers@zsh.org
Subject: Disowned command killed when piping NUL character
Date: Thu, 20 Jul 2023 00:25:18 +0200 [thread overview]
Message-ID: <0a1c849e-433a-4b73-8687-ffe589fd8b3c@crans.org> (raw)
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
next reply other threads:[~2023-07-19 22:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-19 22:25 Johan Grande [this message]
2023-07-19 23:27 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0a1c849e-433a-4b73-8687-ffe589fd8b3c@crans.org \
--to=nahoj@crans.org \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).