misc/124748: sh -c 'exit -1' fails with "Illegal number: -1",
instead of exiting with a code of 255
Garrett Cooper
gcooper at FreeBSD.org
Thu Jun 19 22:50:05 UTC 2008
The following reply was made to PR bin/124748; it has been noted by GNATS.
From: "Garrett Cooper" <gcooper at FreeBSD.org>
To: "Edwin Groothuis" <edwin at mavetju.org>
Cc: "FreeBSD Gnats Submit" <freebsd-gnats-submit at 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 at 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
More information about the freebsd-bugs
mailing list