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

Re: rpm check script problem



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 georgeanelson com>
      '      is no more.             <http://www.georgeanelson.com/>


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