*BSD News Article 34790


Return to BSD News archive

Xref: sserve comp.unix.user-friendly:2761 comp.unix.solaris:21483 comp.unix.questions:53986 comp.unix.programmer:19434 comp.unix.misc:13591 comp.unix.aux:15091 comp.unix.bsd:14659 comp.unix.aix:42854
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
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!swrinde!news.uh.edu!uuneo.neosoft.com!nmtigw!peter
From: peter@nmti.com (Peter da Silva)
Subject: Re: Xtree for Unix!?
Message-ID: <id.5Z8C1.49B@nmti.com>
Sender: peter@nmti.com (peter da silva)
Organization: Network/development platform support, NMTI
References: <Cuo63D.BE1@zimmer.CSUFresno.EDU> <3511@jagubox.gsfc.nasa.gov> <331hnd$8r@spock.isar.muc.de> <332ftf$n5j@usenet.ins.cwru.edu>
Distribution: inet
Date: Fri, 19 Aug 1994 20:22:05 GMT
Lines: 13

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.
-- 
Peter da Silva                                            `-_-'
Network Management Technology Incorporated                 'U`
1601 Industrial Blvd.     Sugar Land, TX  77478  USA
+1 713 274 5180                       "Hast Du heute schon Deinen Wolf umarmt?"