View Full Version : [SOLVED] bash shell scripting doubt.

November 26th, 2009, 09:25 AM
Hello Community,

I am a complete newby in Bash Scripting. I have just started the steve-parker.org Bourne / Bash shell programming tutorial (http://steve-parker.org/sh/sh.shtml).

On page 4 the comment :

"When you call myvar2.sh from your interactive shell, a new shell is spawned to run the script".

leaves me puzzled.

What is the difference between the INTERACTIVE shell and the NEW shell?
How many shell types are there?


John Bean
November 26th, 2009, 09:42 AM
I think the terminology is confusing you, a shell is a shell although there may be (and almost certainly are) several copies or "instances" of it running at any one time. By "interactive" he simply means an instance that displays a prompt that you can type into as against one that exists only to run some process or program without any interaction with the user.

November 26th, 2009, 07:08 PM
OK, I think I understand