Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: <(...), >(...) and fds above 9
2019-07-02 18:43:16 +0200, Sebastian Gniazdowski:
> On Tue, 2 Jul 2019 at 14:21, Stephane Chazelas
> <stephane.chazelas@xxxxxxxxx> wrote:
> > Neither ksh93 nor bash close the fds opened with
> > { cat <(ls -l /proc/self/fd; } {fd}< file
> > (that syntax doesn't work in zsh as already reported).
>
> Can I ask you what do you mean by closing the descriptor? I recently
> often do exec {FD}< <(some code); zle -F $FD handler and it is
> working, which to me appears as the FD not being closed?
The problem is not about fds redirected to/from process
substitutions but fds (opened earlier) used *inside* process
substitution.
exec {fd}< some-file
cat <(cat <&$fd)
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author