Subject: Re: /bin/sh bug or not?
To: Kenneth Stailey <firstname.lastname@example.org>
From: Greg A. Woods <email@example.com>
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?
> firstname.lastname@example.org (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. <email@example.com>; Secrets Of The Weird <firstname.lastname@example.org>