Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
<(...), >(...) and fds above 9
- X-seq: zsh-workers 44470
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: <(...), >(...) and fds above 9
- Date: Mon, 1 Jul 2019 11:00:01 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-disposition:user-agent; bh=DpNROObdMow80Y9p5o2gaKLlmBUQLNiRuV/ugchDTw8=; b=GD6akc+/ZTMiA203OmfRD+E1+bpJELE/jVQ/fEYcUA3IBIDnDLq+KJAGnCFqEiZIgm U1+/95635KW2bPUlMrb97GIfsuqxzywUk4EDjD6AQiEEUe/YWXwbC29cdAPviFm3ZtQ1 17epctWNlRjcjuViKj+UMDDusUz2ZhR7D0znL+UR1+pQdtEhsSQHXDt7v2vqukSgaiN4 tfk2bLmFi1AfxjTwa3GC3DUam8MNTbI1oaFUII7b8D+1VAgM4DlxvntHFEj+kMHPVQFx LNbcGNrl0I4pXISDg/9cqzy6DR6nYh6Ntt/jrInYm7OgIn5OioXSGgKPytkCSQ5zUL1v V/2A==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
/tmp$ zsh -c 'exec {fd}< a; zmodload zsh/system; sysopen -u fd2 /dev/fd/$fd; echo $fd $fd2; exec 7< a; ls -l /proc/self/fd; cat <(ls -l /proc/self/fd)'
12 13
total 0
lrwx------ 1 stephane stephane 64 Jul 1 10:52 0 -> /dev/pts/15
lrwx------ 1 stephane stephane 64 Jul 1 10:52 1 -> /dev/pts/15
lr-x------ 1 stephane stephane 64 Jul 1 10:52 12 -> /tmp/a
lr-x------ 1 stephane stephane 64 Jul 1 10:52 13 -> /tmp/a
lrwx------ 1 stephane stephane 64 Jul 1 10:52 2 -> /dev/pts/15
lr-x------ 1 stephane stephane 64 Jul 1 10:52 3 -> /proc/464/fd
lr-x------ 1 stephane stephane 64 Jul 1 10:52 7 -> /tmp/a
total 0
lrwx------ 1 stephane stephane 64 Jul 1 10:52 0 -> /dev/null
l-wx------ 1 stephane stephane 64 Jul 1 10:52 1 -> pipe:[2044936]
lrwx------ 1 stephane stephane 64 Jul 1 10:52 2 -> /dev/pts/15
lr-x------ 1 stephane stephane 64 Jul 1 10:52 3 -> /proc/465/fd
lr-x------ 1 stephane stephane 64 Jul 1 10:52 7 -> /tmp/a
It seems fds above 9 are closed in those forms of process substitutions.
It doesn't happen for the =(...) form of process substitution.
Is that intentional?
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author