On 2/13/13 12:44 PM, Matei David wrote: > Another thing I tried was to open a fd with <() and use it later in a shell > function. Surprisingly, the fd disappears (is closed) if the shell executes > something unrelated in subshell:
This was reported a while back http://lists.gnu.org/archive/html/bug-bash/2011-08/msg00003.html and fixed soon after. The fix has been in the devel branch of the savannah git tree ever since. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/