[H-GEN] What the...? Weird behaviour from bash
Anthony Towns
aj at humbug.org.au
Fri Feb 6 09:16:52 EST 1998
Hello world,
Can someone explain this?
] [aj at azure ~]$ ls -l /bin/sh /bin/bash
] -rwxr-xr-x 1 root root 325652 Oct 1 03:08 /bin/bash
] lrwxrwxrwx 1 root root 4 Dec 27 13:32 /bin/sh -> bash
] [aj at azure ~]$ /bin/sh
] [aj at azure ~]$ echo hello | cat &> /dev/null
] [aj at azure ~]$ echo hello | cat >& /dev/null
] hello
] [aj at azure ~]$ exit
] [aj at azure ~]$ /bin/bash
] [aj at azure ~]$ echo hello | cat &> /dev/null
] [aj at azure ~]$ echo hello | cat >& /dev/null
] [aj at azure ~]$ exit
Cheers,
aj
--
Anthony Towns <aj at humbug.org.au> <http://azure.humbug.org.au/~aj/>
I don't speak for anyone save myself. PGP encrypted mail preferred.
On Netscape GPLing their browser: ``How can you trust a browser that
ANYONE can hack? For the secure choice, choose Microsoft.''
-- <oryx at pobox.com> in a comment on slashdot.org
----------------------- HUMBUG General List --------------------------------
echo "unsubscribe general" | mail majordomo at humbug.org.au # To Unsubscribe
More information about the General
mailing list