Date: Thu, 19 Jun 2008 21:50:05 GMT From: Edwin Groothuis <edwin@mavetju.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: <200806192150.m5JLo53Y053015@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: Edwin Groothuis <edwin@mavetju.org> To: Garrett Cooper <gcooper@FreeBSD.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: 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@mavetju.org | Weblog: http://www.mavetju.org/weblog/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806192150.m5JLo53Y053015>