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

Re: 4.3.4-dev-6



On Thu, 20 Dec 2007 15:58:23 -0500
Clint Adams <schizo@xxxxxxxxxx> wrote:
> > ftp://ftp.zsh.org/pub/development/zsh-4.3.4-dev-6.tar.gz
> 
> This has been failing forever, but 24290 has made it less
> ignorable.
> 
> This occurs when being built chrooted by either a perl or bash script,
> with output possibly redirected or piped to tee.
> 
> ../../Test/A04redirect.ztst: starting.
> *** /tmp/zsh.ztst.out.23912     Thu Dec 20 15:28:39 2007
> --- /tmp/zsh.ztst.tout.23912    Thu Dec 20 15:28:39 2007
> ***************
> *** 0 ****
> --- 1 ----
> + foo
> Test ../../Test/A04redirect.ztst failed: output differs from expected as shown above for:
>   print foo >&-
> Was testing: '>&-' redirection
> ../../Test/A04redirect.ztst: test failed.

I suggest breakpointing where REDIR_CLOSE is handled around line 2708 of
exec.c in such an environment (which I don't have) to see what's happening.
I suppose it's just vaguely possible that stdin has been set up as a
multio for some reason:  addfd() is the function that adds to a multio
and closemn() is where they are actually spawned (it's quite badly named).

I'm likely to be offline for most of the next couple of weeks.

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



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