Project

General

Profile

Bug #874

Updated by pavalos over 12 years ago

Hi, 

 I was testing a few things, and I was wondering if that behavior is normal: 

 $ exec 3>&1 
 $ echo toto >&3 
 toto 
 $ echo toto > /dev/fd/3 
 toto 
 $ exec 3>&- 
 $ echo toto >&3 
 toto 
 $ echo toto > /dev/fd/3 
 cannot create /dev/fd/3: Bad file descriptor 

 Why is >&3 ignores the redirection, but not /dev/fd/3? It seems to me 
 like a bug. 

 SR

Back