Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Feb 1999 11:22:46 -0600
From:      Zach Heilig <zach@uffdaonline.net>
To:        alk@pobox.com, current@FreeBSD.ORG
Subject:   Re: imgact_shell.c ENOEXEC
Message-ID:  <19990206112246.A26991@znh.org>
In-Reply-To: <14011.64749.572752.41299@avalon.east>; from Tony Kimball on Sat, Feb 06, 1999 at 02:28:38AM -0600
References:  <14011.64749.572752.41299@avalon.east>

next in thread | previous in thread | raw e-mail | index | archive | help
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@uffdaonline.net> / Zach Heilig <zach@gaffaneys.com>
"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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990206112246.A26991>