*BSD News Article 34751


Return to BSD News archive

Xref: sserve comp.unix.user-friendly:2758 comp.unix.solaris:21463 comp.unix.questions:53966 comp.unix.programmer:19422 comp.unix.misc:13586 comp.unix.aux:15084 comp.unix.bsd:14656 comp.unix.aix:42834
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!constellation!mimbres.cs.unm.edu!tesuque.cs.sandia.gov!lynx.unm.edu!nntp.sunbelt.net!swiss.ans.net!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: 19 Aug 1994 14:34:23 GMT
Organization: Information Network Services, Case Western Reserve University
Lines: 18
Distribution: inet
Message-ID: <332ftf$n5j@usenet.INS.CWRU.Edu>
References: <Cuo63D.BE1@zimmer.CSUFresno.EDU> <32tgko$2qc@nic-nac.CSU.net> <3511@jagubox.gsfc.nasa.gov> <331hnd$8r@spock.isar.muc.de>
NNTP-Posting-Host: odin.ins.cwru.edu

In article <331hnd$8r@spock.isar.muc.de>,
Muharem Hrnjadovic <hrnjad@spock.isar.muc.de> wrote:

>There's one potential pitfall though: make sure that the shell to which
>the various actions (default, drag&drop) are given for execution is NOT
>the bash (I am using sh for that) because it does not seem to understand
>commands like:
>
>	bash -c 'exec what_ever $1' file.name

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. 
-- 
"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