From 14f352e3880538f229e423cdc3b36a717e93f7fc Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Thu, 29 Jul 2010 16:21:08 -0600 Subject: [PATCH] docs: mention ksh file descriptor limitation * doc/autoconf.texi (File Descriptors): Document issue with fd 10 and above. Reported by Ralf Wildenhues. --- ChangeLog | 5 +++++ doc/autoconf.texi | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/ChangeLog b/ChangeLog index 278a5656..0ef1fd3d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2010-07-29 Eric Blake + docs: mention ksh file descriptor limitation + * doc/autoconf.texi (File Descriptors): Document issue with fd 10 + and above. + Reported by Ralf Wildenhues. + docs: mention cd limitation * doc/autoconf.texi (Limitations of Builtins) : Document issues with empty argument. diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 493b9dcc..7e804a73 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -15041,6 +15041,20 @@ descriptor 4 had a special use on the Stardent/Kubota Titan (circa obsolete, so it's now safe to treat file descriptors 3 and 4 like any other file descriptors. +On the other hand, you can't portably use multi-digit file descriptors. +Solaris @command{ksh} doesn't understand any file descriptor larger than +@samp{9}: + +@example +$ @kbd{bash -c 'exec 10>&-'; echo $?} +0 +$ @kbd{ksh -c 'exec 9>&-'; echo $?} +0 +$ @kbd{ksh -c 'exec 10>&-'; echo $?} +ksh[1]: exec: 10: not found +127 +@end example + @node File System Conventions @section File System Conventions @cindex File system conventions -- 2.47.2