1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-11 18:16:15 +02:00

unposted: Add 45400 (vared in subshells) plus remarks on users/24904.

This commit is contained in:
Bart Schaefer 2020-06-09 08:52:56 -07:00
parent d7e90f1c7c
commit 172b646a6b

View File

@ -63,4 +63,13 @@ users/24904: 'func <(...) | wc -l' results in ENOENT on /proc/self/fd/13
% efe <(seq 1 10) | wc -l
cat: /proc/self/fd/13: No such file or directory
0
This occurs because pipelines fork to the left, and named functions
become their own job, which means descriptors numbered >= 10 are closed,
including those opened by process substitution.
------------------------------------------------------------------------
45400: vared does not work in subshells, even when the parent shell is
interactive and the subshell is the foreground job. The USEZLE option is
always turned off in subshells, for reasons lost to history. There is a
related, probably obsolete, vared special case for $TERM set to "emacs".
------------------------------------------------------------------------