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