From owner-freebsd-hackers Sun Oct 1 13:07:36 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id NAA25843 for hackers-outgoing; Sun, 1 Oct 1995 13:07:36 -0700 Received: from trepan.io.org (taob@trepan.io.org [198.133.36.8]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id NAA25825 for ; Sun, 1 Oct 1995 13:07:29 -0700 Received: (from taob@localhost) by trepan.io.org (8.6.9/8.6.9) id QAA00815; Sun, 1 Oct 1995 16:07:18 -0400 Date: Sun, 1 Oct 1995 16:07:17 -0400 (EDT) From: Brian Tao To: "Kaleb S. KEITHLEY" cc: hackers@freefall.freebsd.org Subject: Re: /bin/sh thinks it's csh In-Reply-To: <199509292009.QAA29806@exalt.x.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.org Precedence: bulk On Fri, 29 Sep 1995, Kaleb S. KEITHLEY wrote: > > % sh -c 'echo $1' foo bar baz > foo > % csh -c 'echo $1' foo bar baz > foo > > 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? -- Brian Tao System Administrator, Internex Online Inc. "Though this be madness, yet there is method in't"