From owner-freebsd-bugs@FreeBSD.ORG Thu Jun 19 22:50:05 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 F358B106566C for ; Thu, 19 Jun 2008 22:50:04 +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 D7E108FC0A for ; Thu, 19 Jun 2008 22:50:04 +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 m5JMo4AI062863 for ; Thu, 19 Jun 2008 22:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m5JMo42B062862; Thu, 19 Jun 2008 22:50:04 GMT (envelope-from gnats) Date: Thu, 19 Jun 2008 22:50:04 GMT Message-Id: <200806192250.m5JMo42B062862@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: "Garrett Cooper" 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: Garrett Cooper List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2008 22:50:05 -0000 The following reply was made to PR bin/124748; it has been noted by GNATS. From: "Garrett Cooper" To: "Edwin Groothuis" 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: Thu, 19 Jun 2008 15:18:31 -0700 On Thu, Jun 19, 2008 at 2:45 PM, Edwin Groothuis 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 >> 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