rpm check script problem

Tony Nelson tonynelson at georgeanelson.com
Tue Oct 10 20:50:19 UTC 2006


At 9:29 AM +0100 10/10/06, Dan Track wrote:
 ...
>I'm a little bit confused it seems as though some people are saying that
>exec 9<&0 < $filename  means that the rest of the script will be
>dealing with fd9, but other people are saying that I will be dealing
>with fd0 throughout the script. Which ones right?

Both.  After 9<&0, both fd9 and fd0 are the same thing.  You most likely
want 9<$filename so that fd9 has the file and fd0 (stdin) is left alone.
-- 
____________________________________________________________________
TonyN.:'    The Great Writ     <mailto:tonynelson at georgeanelson.com>
      '      is no more.             <http://www.georgeanelson.com/>




More information about the users mailing list