diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2002-01-06 00:30:13 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2002-01-06 00:30:13 +0000 |
commit | 05c2b84ad1d9061c7123d7d0c85bf29219cd7d01 (patch) | |
tree | 683b962b9677844f9bcc4aa79a10e23dc627a82e | |
parent | 95abfc0e2ad392a404a0a1f940951afb9aa924a2 (diff) | |
download | zsh-05c2b84ad1d9061c7123d7d0c85bf29219cd7d01.tar.gz zsh-05c2b84ad1d9061c7123d7d0c85bf29219cd7d01.tar.xz zsh-05c2b84ad1d9061c7123d7d0c85bf29219cd7d01.zip |
Remarks on the "exec" builtin with redirection using the close-on-exec flag
on descriptors.
-rw-r--r-- | Etc/STD-TODO | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Etc/STD-TODO b/Etc/STD-TODO index 4f964e37f..a228dee96 100644 --- a/Etc/STD-TODO +++ b/Etc/STD-TODO @@ -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 {...}." |