bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bash 3.2.39] File descriptor 10 is always duplicated from 0 and can


From: Chris F.A. Johnson
Subject: Re: [bash 3.2.39] File descriptor 10 is always duplicated from 0 and cannot be closed
Date: Fri, 31 Oct 2008 06:59:41 +0000
User-agent: slrn/0.9.8.1 (Linux)

On 2008-10-31, Clark J. Wang wrote:
...
> # read line <&11    <--- test with fd 11
> bash: 11: Bad file descriptor
> #

    You haven't opened file descriptor 11:

$ (
exec 11<$HOME/.bashrc

while read <&11
do
  printf .
done
echo

exec 11<&-
)
................................................................


-- 
   Chris F.A. Johnson, webmaster         <http://Woodbine-Gerrard.com>
   ===================================================================
   Author:
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]