Subject: Re: /bin/sh bug or not?
To: Kenneth Stailey <kstailey@leidecker.gsfc.nasa.gov>
From: Greg A. Woods <woods@kuma.web.net>
List: current-users
Date: 05/11/1995 11:05:00
[ On Wed, May 10, 1995 at 19:53:31 (-0400), Kenneth Stailey wrote: ]
> Subject: /bin/sh bug or not?
>
> tulloh@dev.tivoli.com (Robert Tulloh) writes:
>
> > Well, I have run across something else that looks suspicious in NetBSD
> > sh and I wanted to run it past you. Take the expression:
> >
> > i=`false`
> >
> > Under AIX ksh, this expression will set return code to 1.
> > Under SunOS sh, this expression will set return code to 255.
> > Under SunOS bash, this expression will set return code to 255.
Hmmm.... On SunOS-4.1.3, 4.1.3_U1 and 4.1.4 /usr/bin/sh sets $? to 1.
--
Greg A. Woods
+1 416 443-1734 VE3TCP robohack!woods
Planix, Inc. <woods@planix.com>; Secrets Of The Weird <woods@weird.com>