Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Oct 1995 16:07:17 -0400 (EDT)
From:      Brian Tao <taob@io.org>
To:        "Kaleb S. KEITHLEY" <kaleb@x.org>
Cc:        hackers@freefall.freebsd.org
Subject:   Re: /bin/sh thinks it's csh
Message-ID:  <Pine.BSI.3.91.951001160611.19034V-100000@trepan.io.org>
In-Reply-To: <199509292009.QAA29806@exalt.x.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <taob@io.org>
System Administrator, Internex Online Inc.
"Though this be madness, yet there is method in't"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.91.951001160611.19034V-100000>