From owner-freebsd-bugs@FreeBSD.ORG Thu Jun 19 21:50:06 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A212106564A for ; Thu, 19 Jun 2008 21:50:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F0F408FC19 for ; Thu, 19 Jun 2008 21:50:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m5JLo5oQ053016 for ; Thu, 19 Jun 2008 21:50:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m5JLo53Y053015; Thu, 19 Jun 2008 21:50:05 GMT (envelope-from gnats) Date: Thu, 19 Jun 2008 21:50:05 GMT Message-Id: <200806192150.m5JLo53Y053015@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Edwin Groothuis Cc: Subject: Re: misc/124748: sh -c 'exit -1' fails with "Illegal number: -1", instead of exiting with a code of 255 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Edwin Groothuis List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2008 21:50:06 -0000 The following reply was made to PR bin/124748; it has been noted by GNATS. From: Edwin Groothuis To: Garrett Cooper Cc: FreeBSD Gnats Submit 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 > 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/