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

Re: multios doesn't work with 2>&1



On Oct 27,  5:46pm, Peter Stephenson wrote:
} Subject: Re: multios doesn't work with 2>&1
}
} Bart Schaefer wrote:
} > If I back out workers/20666 (Jan 2005), then this example works again.
} 
} (This is really a zsh-workers thing, too, so I've moved it.)
} 
} Crikey, I'd worked out it was already broken in 2007 and I thought I was
} doing well...

I went through "git whatchanged Src/exec.c" searching for the string
"multio" and then cross-referenced with Etc/ChangeLog-4.3.

} echo foo >/dev/null 2>&1 | sed 's/foo/bar/'
} 
} gives a different bad effect, namely you get the output you want but the
} shell hangs

This problem is still there after 31912.

The parent shell is in zwaitjob(), as is the shell that spawned sed.
The multio copy-input-to-output job is blocked on read of the pipe,
which is never going to close because the other two jobs are waiting.



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