From 0914d270004799333f9ea921d254b58d4573474a Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Mon, 12 May 2014 21:38:15 -0400 Subject: [PATCH] File descriptor 99 is reserved for internal use It should not, by convention, be used by any test cases; its opening here will (presumably, at least) prevent the shell from automatically allocating it for any file operations and subshells. --- src/expect-core | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/expect-core b/src/expect-core index 29dbb45..50a18ff 100644 --- a/src/expect-core +++ b/src/expect-core @@ -22,6 +22,9 @@ [ -z $__INC_EXPECT_CORE ] || return __INC_EXPECT_CORE=1 +# reserved for our uses +exec 99<>/dev/null + ## # Shorthand for bailing out on unrecognized clauses