|
From: Vasanth on 17 Nov 2005 08:09 Iam new to shell scripts. Can anybody tell what are all the shell types(bash,Ksh,Csh...) does the following OS supports? Unix-? Linux-? Solaris-? And also when to use which shells? Advantage/Disadvantage of shells compared to other shell types? Thanks and Regards, Vasanth.
From: Lars Kellogg-Stedman on 17 Nov 2005 08:30 > Can anybody tell what are all the shell types(bash,Ksh,Csh...) does the > following OS supports? Pretty much any shell can be used on any os. > And also when to use which shells? Most shell scripts are written using Bourne shell (sh/bash/ksh/etc.) syntax, but this is by no means universally true. Your choice of interactive shell will be largely dictated by personal preference. > Advantage/Disadvantage of shells compared to other shell types? For interactive use, many people like to use Bourne-shell variants like bash, ksh, etc., because these are frequently used for writing batch scripts. This means the syntax for your interactive use is the same syntax you use for writing scripts. On the other hand, many people (poor, misguided souls :) ) prefer to use csh variants. Shells such as bash, zsh, or tcsh have real advantages for interactive use (such as better history handling, flexible key bindings, flexible command line completion) over their ancestors (sh/csh/etc.). -- Lars -- Lars Kellogg-Stedman <8273grkci8q8kgt(a)jetable.net> This email address will expire on 2005-11-23.
From: Vasanth on 17 Nov 2005 08:54 Thanks Lars.
From: Chris F.A. Johnson on 17 Nov 2005 10:54 On 2005-11-17, Vasanth wrote: > Iam new to shell scripts. > Can anybody tell what are all the shell types(bash,Ksh,Csh...) does the > following OS supports? > > Unix-? > Linux-? > Solaris-? > > And also when to use which shells? > Advantage/Disadvantage of shells compared to other shell types? All current OSs (Unix-type) will have a POSIX shell. It is a superset (more or less) of the Bourne shell. That shell may be bash, ksh or ash (or something else), but if you stick to POSIX syntax, your scripts will run on all those systems. Of the more than 100 scripts in my book, all except 6 are POSIX-compliant. The rest require bash. -- Chris F.A. Johnson, author | <http://cfaj.freeshell.org> Shell Scripting Recipes: | My code in this post, if any, A Problem-Solution Approach | is released under the 2005, Apress | GNU General Public Licence
From: Thorsten Kampe on 17 Nov 2005 12:21 * Vasanth (2005-11-17 13:09 +0100) > Iam new to shell scripts. > Can anybody tell what are all the shell types(bash,Ksh,Csh...) does the > following OS supports? > > Unix-? > Linux-? > Solaris-? > > And also when to use which shells? > Advantage/Disadvantage of shells compared to other shell types? http://www.faqs.org/faqs/unix-faq/shell/shell-differences/
|
Next
|
Last
Pages: 1 2 Prev: Modifying a STRING in C-Shell Next: Comparing value with records in a shell array. |