Re: Which shell interpreter has priority: The declared, the current or calling?

From: Chris F.A. Johnson (
Date: 02/18/05

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
> e.g.:
> csh>ksh
> where starts
> #!/usr/local/bin/bash
> By which shell/script interpreter is the script executed?

   It will be interpreted by ksh, since is an argument to
   a command, not a command in itself.

    Chris F.A. Johnson        
    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