Re: Which shell interpreter has priority: The declared, the current or calling?
From: Chris F.A. Johnson (cfajohnson_at_gmail.com)
Date: 18 Feb 2005 07:01:19 GMT
On Fri, 18 Feb 2005 at 06:46 GMT, Matt Benson wrote:
> Imagine I have the three shells csh, ksh and bash.
> Currently I am working under shell a and call from the command line
> a script with shebang "#!/bin/b" by shell c
> csh>ksh myscript.sh
> where myscript.sh starts
> By which shell/script interpreter is the script executed?
It will be interpreted by ksh, since myscript.sh is an argument to
a command, not a command in itself.
-- Chris F.A. Johnson http://cfaj.freeshell.org/shell =================================================================== My code (if any) in this post is copyright 2005, Chris F.A. Johnson and may be copied under the terms of the GNU General Public License