Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!henry
From: henry@utzoo.UUCP (Henry Spencer)
Newsgroups: net.unix
Subject: Re: inconsistency on read/execute permissions for shell procedures
Message-ID: <5781@utzoo.UUCP>
Date: Thu, 11-Jul-85 13:21:45 EDT
Article-I.D.: utzoo.5781
Posted: Thu Jul 11 13:21:45 1985
Date-Received: Thu, 11-Jul-85 13:21:45 EDT
References: <761@wanginst.UUCP>, <1945@ukma.UUCP>
Organization: U of Toronto Zoology
Lines: 12

> ... a simple solution would be to have the kernel hand the
> shell the file on standard input if --x access is permitted...

Unfortunately, this does not work if the shell file wants to read from
standard input, which many do.  It probably *would* be possible to devise
some sort of standard-file-descriptor convention along similar lines,
but then every interpreter would have to be prepared to accept input that
way.  Actually, this is a weakness even just with standard input; things
like awk are not prepared to read their programs from their input.
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,linus,decvax}!utzoo!henry