1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-26 09:56:05 +02:00

Remarks on the "exec" builtin with redirection using the close-on-exec flag

on descriptors.
This commit is contained in:
Bart Schaefer 2002-01-06 00:30:13 +00:00
parent 95abfc0e2a
commit 05c2b84ad1

View File

@ -58,3 +58,14 @@ the same name as a command in PATH.
All parameters in ksh are indexed arrays. That's why $array has to mean
${array[0]}, and why subscripts can't be used to extract substrings from
scalars.
In ksh,
exec 3<file
causes file 3 to be close on exec. DGK says: "This allows scripts to
use file descriptors 3-9 without side effects on commands that are
subsequently executed.
command 3< file
will not use close on exec, and
{
} 3< file
will not use close on exec for any commands inside {...}."