Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Jun 2008 22:50:04 GMT
From:      "Garrett Cooper" <gcooper@FreeBSD.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/124748: sh -c 'exit -1' fails with "Illegal number: -1", instead of exiting with a code of 255
Message-ID:  <200806192250.m5JMo42B062862@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/124748; it has been noted by GNATS.

From: "Garrett Cooper" <gcooper@FreeBSD.org>
To: "Edwin Groothuis" <edwin@mavetju.org>
Cc: "FreeBSD Gnats Submit" <freebsd-gnats-submit@freebsd.org>
Subject: Re: misc/124748: sh -c 'exit -1' fails with "Illegal number: -1", instead of exiting with a code of 255
Date: Thu, 19 Jun 2008 15:18:31 -0700

 On Thu, Jun 19, 2008 at 2:45 PM, Edwin Groothuis <edwin@mavetju.org> wrote:
 > On Thu, Jun 19, 2008 at 07:03:10AM +0000, Garrett Cooper wrote:
 >> ===================================================================
 >> RCS file: /home/ncvs/src/bin/sh/exec.c,v
 >> retrieving revision 1.31
 >> diff -r1.31 exec.c
 >> 40a41
 >> > #include <string.h>
 >> 361c362
 >> <                     if (prefix("builtin", pathopt)) {
 >> ---
 >> >                     if (strncmp(BUILTIN, pathopt, strlen(BUILTIN)) == 0) {
 >> Index: histedit.c
 >> ===================================================================
 >
 > I don't want to be a pain, but could you do this with "diff -u" in
 > case there is some context required?
 >
 > Edwin
 
 Will do once I get home.
 -Garrett



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806192250.m5JMo42B062862>