Re: Which shell interpreter has priority: The declared, the current or calling?
From: Chris F.A. Johnson (cfajohnson_at_gmail.com)
Date: 02/18/05
- Next message: Stachu 'Dozzie' K.: "Re: Which shell interpreter has priority: The declared, the current or calling?"
- Previous message: Matt Benson: "Which shell interpreter has priority: The declared, the current or calling?"
- In reply to: Matt Benson: "Which shell interpreter has priority: The declared, the current or calling?"
- Next in thread: Stachu 'Dozzie' K.: "Re: Which shell interpreter has priority: The declared, the current or calling?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 myscript.sh
>
> where myscript.sh starts
>
> #!/usr/local/bin/bash
>
> 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
- Next message: Stachu 'Dozzie' K.: "Re: Which shell interpreter has priority: The declared, the current or calling?"
- Previous message: Matt Benson: "Which shell interpreter has priority: The declared, the current or calling?"
- In reply to: Matt Benson: "Which shell interpreter has priority: The declared, the current or calling?"
- Next in thread: Stachu 'Dozzie' K.: "Re: Which shell interpreter has priority: The declared, the current or calling?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|