From owner-cvs-all Mon Sep 24 16: 4:22 2001 Delivered-To: cvs-all@freebsd.org Received: from r220-1.rz.RWTH-Aachen.DE (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by hub.freebsd.org (Postfix) with ESMTP id 741BA37B420; Mon, 24 Sep 2001 16:04:12 -0700 (PDT) Received: from r220-1.rz.RWTH-Aachen.DE (relay2.RWTH-Aachen.DE [134.130.3.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3-2) with ESMTP id f8ON4CY12852; Tue, 25 Sep 2001 01:04:12 +0200 (MEST) Received: from kawoserv.kawo2.rwth-aachen.de (root@kawoserv.kawo2.RWTH-Aachen.DE [134.130.180.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3/6) with ESMTP id f8ON4Cc12848; Tue, 25 Sep 2001 01:04:12 +0200 (MEST) Received: from fump.kawo2.rwth-aachen.de (root@fump.kawo2.rwth-aachen.de [134.130.181.148]) by kawoserv.kawo2.rwth-aachen.de (8.9.3/8.9.3) with ESMTP id BAA17735; Tue, 25 Sep 2001 01:04:10 +0200 Received: (from alex@localhost) by fump.kawo2.rwth-aachen.de (8.11.3/8.11.3) id f8ON48A00593; Tue, 25 Sep 2001 01:04:08 +0200 (CEST) (envelope-from alex) Date: Tue, 25 Sep 2001 01:04:06 +0200 From: Alexander Langer To: "David O'Brien" Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/etc rc Message-ID: <20010925010406.B540@fump.kawo2.rwth-aachen.de> References: <200109241817.f8OIHBM06001@freefall.freebsd.org> <20010924225049.A958@zerogravity.kawo2.rwth-aachen.d> <20010924155433.A27017@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010924155433.A27017@dragon.nuxi.com>; from obrien@FreeBSD.org on Mon, Sep 24, 2001 at 03:54:33PM -0700 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake David O'Brien (obrien@FreeBSD.org): > > What about test(1)ing with -x if the file is executeable and then > > call /bin/sh to execute it. Seems to be the most logical behaviour > > to me and satifies both revs. > Huh? What is different between ``./foo.sh'' and ``sh foo.sh'' when > foo.sh is excutable? The reason to use `ss' to run `foo.sh' is that > foo.sh does not then need to be executeable. I thought your problem was the missing interpreter (#!...)? If you do [ -x foo.sh ] && /bin/sh foo.sh, it will only get executed if the executeable flag is set, BUT will use the correct interpreter. Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message