Originally posted by Doctor Q
you can also invoke a shell script by naming the shell and the shell script file, e.g., sh myscript, in which case the shell script only needs read permission.
ah, i gotcha. yes, in that case the name of the file is an argument and the shell deals w/ it only in the sense it's passing the name to the sh program. when sh opens a pipe to read the file, it only needs the read bit set, as you indicated.
i thought you meant you were executing the file directly, e.g.:
% myscript