*BSD News Article 34783


Return to BSD News archive

Xref: sserve comp.unix.user-friendly:2762 comp.unix.solaris:21485 comp.unix.questions:53990 comp.unix.programmer:19436 comp.unix.misc:13592 comp.unix.aux:15092 comp.unix.bsd:14660 comp.unix.aix:42855
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!usenet.ins.cwru.edu!odin!chet
From: chet@odin.INS.CWRU.Edu (Chet Ramey)
Newsgroups: comp.unix.user-friendly,comp.unix.solaris,comp.unix.questions,comp.unix.programmer,comp.unix.misc,comp.unix.aux,comp.unix.bsd,comp.unix.aix
Subject: Re: Xtree for Unix!?
Date: 22 Aug 1994 15:26:07 GMT
Organization: Information Network Services, Case Western Reserve University
Lines: 17
Distribution: inet
Message-ID: <33ag2f$a0u@usenet.INS.CWRU.Edu>
References: <Cuo63D.BE1@zimmer.CSUFresno.EDU> <331hnd$8r@spock.isar.muc.de> <332ftf$n5j@usenet.ins.cwru.edu> <id.5Z8C1.49B@nmti.com>
NNTP-Posting-Host: odin.ins.cwru.edu

In article <id.5Z8C1.49B@nmti.com>, Peter da Silva <peter@nmti.com> wrote:
>In article <332ftf$n5j@usenet.ins.cwru.edu>,
>Chet Ramey <chet@odin.INS.CWRU.Edu> wrote:
>> Posix.2 says the args that follow `string' in `-c string' should become
>> arguments $0...$N, not $1...$N, and this is what bash does.  Your program
>> seems to be depending on a quirk of the BSD/386 /bin/sh. 
>
>Then POSIX.2 is broken. In every other context $0 is the program or function
>name and $1..$N are the arguments.

Please.  Posix.2 followed existing practice in this area.  Traditional
/bin/sh and ksh do the same thing.
-- 
"I believe every human has a finite number of heartbeats.  I don't intend
 to waste any of mine running around doing exercises." - Neil Armstrong

Chet Ramey, Case Western Reserve University	Internet: chet@po.CWRU.Edu