[H-GEN] What the...? Weird behaviour from bash
Byron Ellacott
rodent at homer.humbug.org.au
Fri Feb 6 11:24:17 EST 1998
On Sat, 7 Feb 1998, Anthony Towns wrote:
> ] [aj at azure ~]$ /usr/bin/tcsh
> ] azure:~> echo hello | cat &>/dev/null
> ] Invalid null command.
> ] azure:~> echo hello | cat >&/dev/null
> ] azure:~> exit
> Why don't /bin/sh, /bin/bash and /bin/tcsh all support any one of
> these syntaxes? (/bin/csh is the same as /bin/tcsh, but its prompt on
> azure's stuffed up, whereas tcsh's isn't...)
The Invalid null command would be because &> is unsupported, and the
ampersand is seen as a command separator under tcsh, and >/dev/null is
indeed a null command :)
That one was easy .. as for them not supporting the same syntax, life
would be very boring if everything was the same :)
That's what #!_/bin/<shell>_ is for <g>
----------------------- HUMBUG General List --------------------------------
echo "unsubscribe general" | mail majordomo at humbug.org.au # To Unsubscribe
More information about the General
mailing list