From owner-freebsd-hackers Sun Oct 1 14:36:26 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id OAA01580 for hackers-outgoing; Sun, 1 Oct 1995 14:36:26 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id OAA01573 for ; Sun, 1 Oct 1995 14:36:22 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id WAA00890; Sun, 1 Oct 1995 22:12:43 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id WAA00456; Sun, 1 Oct 1995 22:12:43 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.6.12/8.6.9) id WAA08280; Sun, 1 Oct 1995 22:02:37 +0100 From: J Wunsch Message-Id: <199510012102.WAA08280@uriah.heep.sax.de> Subject: Re: /bin/sh thinks it's csh To: terry@lambert.org (Terry Lambert) Date: Sun, 1 Oct 1995 22:02:35 +0100 (MET) Cc: taob@io.org, kaleb@x.org, hackers@freefall.freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199510012016.NAA20297@phaeton.artisoft.com> from "Terry Lambert" at Oct 1, 95 01:16:48 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 603 Sender: owner-hackers@FreeBSD.org Precedence: bulk As Terry Lambert wrote: > > > > POSIX.2 Section 4.56.3 says everyone else is right, and FreeBSD is ... > > > not right. > > > > 950726 has this beahviour too, which I always thought was correct. > > Why would $1 represent anything other than the first argument in argv? > > > man exec: > > The exec family of functions replaces the current process image with a > new process image. Wrong quote. See my commit message for the correct one. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)