From owner-freebsd-current Sat Feb 6 09:20:15 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA29862 for freebsd-current-outgoing; Sat, 6 Feb 1999 09:20:15 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from k6n1.znh.org ([207.109.235.51]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA29854 for ; Sat, 6 Feb 1999 09:20:07 -0800 (PST) (envelope-from zach@uffdaonline.net) Received: (from zach@localhost) by k6n1.znh.org (8.9.2/8.9.1) id RAA27274; Sat, 6 Feb 1999 17:22:46 GMT (envelope-from zach) Message-ID: <19990206112246.A26991@znh.org> Date: Sat, 6 Feb 1999 11:22:46 -0600 From: Zach Heilig To: alk@pobox.com, current@FreeBSD.ORG Subject: Re: imgact_shell.c ENOEXEC References: <14011.64749.572752.41299@avalon.east> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <14011.64749.572752.41299@avalon.east>; from Tony Kimball on Sat, Feb 06, 1999 at 02:28:38AM -0600 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Feb 06, 1999 at 02:28:38AM -0600, Tony Kimball wrote: > In the file of the subject, I notice this: > /* > * Don't allow a shell script to be the shell for a shell > * script. :-) > */ > if (imgp->interpreted) > return(ENOEXEC); > Why not? I'd like to. Imagine this: $ file /tmp/test.sh /tmp/test.sh: a /tmp/test.sh script text $ /tmp/test.sh ... -- Zach Heilig / Zach Heilig "Americans are sensitive about their money, and since this was the first major change in the greenback in nearly 70 years, a radical redesign might have been too much for consumers to comprehend" -- John Iddings [COINage, Feb. 1999]. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message