zsh-workers
 help / color / mirror / Atom feed
* [BUG] builtins with bad file descriptor can hang the shell
@ 2021-06-10  8:25 Vincent Lefevre
  2021-06-10 17:08 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Vincent Lefevre @ 2021-06-10  8:25 UTC (permalink / raw)
  To: zsh-workers

The following first 3 commands are OK. The 4th one hangs zsh,
with Ctrl-C and Ctrl-\ having no effect. This happens whether
MULTIOS is set or not.

zira% echo >&- > >(cat -n)
     1
zira% echo >&2 > >(cat -n)

     1
zira% /bin/echo >&3 > >(cat -n)
zsh: 3: bad file descriptor
zira% echo >&3 > >(cat -n)
zsh: 3: bad file descriptor

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [BUG] builtins with bad file descriptor can hang the shell
  2021-06-10  8:25 [BUG] builtins with bad file descriptor can hang the shell Vincent Lefevre
@ 2021-06-10 17:08 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2021-06-10 17:08 UTC (permalink / raw)
  To: Zsh hackers list

On Thu, Jun 10, 2021 at 1:26 AM Vincent Lefevre <vincent@vinc17.net> wrote:
>
> zira% echo >&3 > >(cat -n)
> zsh: 3: bad file descriptor

I think this ends up being the same bug as workers/42609 (mentioned in
Etc/BUGS).


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-10 17:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-10  8:25 [BUG] builtins with bad file descriptor can hang the shell Vincent Lefevre
2021-06-10 17:08 ` Bart Schaefer

zsh-workers

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/zsh-workers

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 zsh-workers zsh-workers/ http://inbox.vuxu.org/zsh-workers \
		zsh-workers@zsh.org
	public-inbox-index zsh-workers

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.workers


code repositories for the project(s) associated with this inbox:

	https://git.vuxu.org/mirror/zsh/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git