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

Re: bash woes



* This one time, at band camp, Jonathan Matthews said:
> Ok - can someone explain the following:
> 
> jaycee@kanyon:/tmp$ ls
> jaycee@kanyon:/tmp$ rm abc
> rm: cannot remove `abc': No such file or directory
> jaycee@kanyon:/tmp$ rm abc 2>err
> jaycee@kanyon:/tmp$ cat err
> rm: cannot remove `abc': No such file or directory
> jaycee@kanyon:/tmp$ rm err
> jaycee@kanyon:/tmp$ rm abc 2>&1 > err
> rm: cannot remove `abc': No such file or directory
> jaycee@kanyon:/tmp$ rm abc 2>&1 > /dev/null
> rm: cannot remove `abc': No such file or directory
> 
> Why can't I silently discard the output of rm?
> Am I missing something subtle?
> Something obvious?
> A vital brain part?
> 

tgreen@cavey:~$ rm err
rm: cannot remove `err': No such file or directory
tgreen@cavey:~$ rm err 2>/dev/null
tgreen@cavey:~$ 


-- 
Greeno <tgreen@bandcamp.tv>
GnuPG Key :  1024D/B5657C8B 
Key fingerprint = 9ED8 59CC C161 B857 462E  51E6 7DFB 465B B565 7C8B

Imagine working in a secure environment and finding the string 
_NSAKEY in the OS binaries without a good explanation
    -Alan Cox 04/05/2001



Reply to: