Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jul 2013 19:20:32 GMT
From:      Daniel Shahaf <danielsh@apache.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/180178: shells/zsh: hangs upon '>(command)' redirections
Message-ID:  <201307011920.r61JKWtN029635@oldred.freebsd.org>
Resent-Message-ID: <201307011930.r61JU0qO091756@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         180178
>Category:       ports
>Synopsis:       shells/zsh: hangs upon '>(command)' redirections
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 01 19:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Daniel Shahaf
>Release:        9.1-RELEASE-p3
>Organization:
elego Software Solutions GmbH
>Environment:
FreeBSD loki.apache.org 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0 r250118: Tue Apr 30 22:06:26 UTC 2013     root@loki.apache.org:/usr/obj/usr/src/sys/ASF  amd64

Using zsh 5.0.2 from ports:

% echo $ZSH_VERSION
5.0.2
>Description:
zsh hangs when commands involving '>(command)' are involved:

[[[
% ssh loki.apache.org 'zsh -fc "echo >(wc -l)"' 
/tmp/zshJHGd5f

]]]

It responds to ^C and ^Z but not to ^D or ^\.

Using ':' or 'true' inside the parentheses yields the same behaviour.
>How-To-Repeat:
zsh -fc "echo >(:)"

OR

zsh -fc ">(:)"

>Fix:
The problem does not appear on either OpenBSD or Linux:

% ssh openbsdbox 'zsh -fc "echo >(true)"' 
/dev/fd/12
% ssh linuxbox 'zsh -fc "echo >(true)"'             
/proc/self/fd/12


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307011920.r61JKWtN029635>