Find the answer to your Linux question:
Results 1 to 3 of 3
Whats the difference, and when do you use which?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! EchoOnFedora's Avatar
    Join Date
    Sep 2010
    Location
    US
    Posts
    24

    Difference between shell and bash scripts


    Whats the difference, and when do you use which?

  2. #2
    Linux Newbie
    Join Date
    Mar 2010
    Posts
    152
    There's not really a difference - a "bash script" is a type of "shell script", since bash is a type of shell. Normally, the names are synonymous with each other.

  3. #3
    Linux Newbie sarlacii's Avatar
    Join Date
    May 2005
    Location
    South Africa
    Posts
    110
    Yeh, it's really an argument about semantics... in general you should use "shell script" when talking about command-line scripts, since this does not reference a particular shell. However, the Bash shell is so commonly used as the default shell in most systems, that people have come to use "Bash script" colloquially.

    But... there are still many folk out there who will have a particular preference for korn, tcsh, csh or zsh etc. It's also worth noting that Perl and Python have taken over a lot of the heavy-lifting that used to be accomplished using shell scripts. The readability is better, as is the portability.

    Have fun.
    Respectfully... Sarlac II
    ~~
    The moving clock K' appears to K to run slow by the factor (1-v^2/c^2)^(1/2).
    This is the phenomenon of time dilation.
    The faster you run, the younger you look, to everyone but yourself.

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •