misc/124748: sh -c 'exit -1' fails with "Illegal number: -1",
instead of exiting with a code of 255
Edwin Groothuis
edwin at mavetju.org
Thu Jun 19 21:50:06 UTC 2008
The following reply was made to PR bin/124748; it has been noted by GNATS.
From: Edwin Groothuis <edwin at mavetju.org>
To: Garrett Cooper <gcooper at FreeBSD.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: Fri, 20 Jun 2008 07:45:22 +1000
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
--
Edwin Groothuis | Personal website: http://www.mavetju.org
edwin at mavetju.org | Weblog: http://www.mavetju.org/weblog/
More information about the freebsd-bugs
mailing list