help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Different methods of running scripts; subshells and exec


From: Greg Wooledge
Subject: Re: [Help-bash] Different methods of running scripts; subshells and execute privileges
Date: Mon, 24 Aug 2015 10:55:33 -0400
User-agent: Mutt/1.4.2.3i

On Mon, Aug 24, 2015 at 07:35:56AM -0700, Michael Convey wrote:
>    - ??????
>    bash /path/script
>    - sh /path/script
>    - ??????
>    /path/script.sh

I literally cannot even READ the first and fourth lines of this.
Whatever non-ASCII characters you used are not being rendered in my
poor old Latin-1 terminal.

If you type "bash" then the kernel runs bash.

If you type "sh" then the kernel runs sh.

If you type the scriptname, the kernel runs the script.  Running a script
means it launches the interpreter in the shebang line.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]