The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ksh: difference between $* and $@ JamesByars Shell Programming and Scripting 1 12-30-2007 10:08 AM
Difference between $* and $@ saneeshjose Shell Programming and Scripting 1 01-19-2006 08:03 AM
Difference between C and C++ hytechpro High Level Programming 2 11-29-2005 09:48 PM
difference rajashekaran UNIX for Advanced & Expert Users 1 04-23-2002 01:59 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-09-2005
tads98 tads98 is offline
Registered User
  
 

Join Date: May 2005
Posts: 40
difference between ksh and bsh

i am not that techie when it comes to unix. all i know is how to code...

kindly enlighten me regarding the difference between ksh and bsh. we are currently running scripts using ksh... what would be the implications if we need them to run using bsh?

thanks!
  #2 (permalink)  
Old 08-09-2005
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Hmm, interesting question. Did you mean bsh or bash?

Or are you looking at bsh as some are using it as being Bourne shell (some distributions are using ksh for root account as default and moving sh to bsh).

Or are you looking for bsh - bean shell (java) ?

You'll need to check which bsh someone is asking you about.
  #3 (permalink)  
Old 08-10-2005
tads98 tads98 is offline
Registered User
  
 

Join Date: May 2005
Posts: 40
told you i was not techie

bourne shell vs. korn shell.
  #4 (permalink)  
Old 08-10-2005
hadarot hadarot is offline
Registered User
  
 

Join Date: Jul 2005
Posts: 33
Dude, don't worry about it. You probably can code better than many of us here...
But "Bourne shell" is just a name for the orignal version of the Unix comand intrenpreter, written at AT&T Bell Labs by a guy named Steve Bourne -- hence the name. This was the basic shell provided as part of the UNIX operating system from AT&T (starting with version 7), and since UNIX emerged from AT&T, it became the de facto standard shell. It was designed to be used both as a programming language (an interpreted one), and also as an interactive command interpeter, to accept commands from the user and relay the message to the underlying system (ie, to the kernel). AT&T came out with different versions of Unix (like e.g. MS has Windows 95, than 98, than XP). The shell changed slightly with various versions (like the introduction of job control, e.g.). (UC Berkley was a hotbed for UNIX innovation at this time, and they came out with their own shell, the csh. This made a lot of enhancements for interactive use, making it easier for the user to type commands manually. But don't worry about that for now.)
But then in the early to mid-80's another AT&T employeee, David Korn, decided it was time to really revamp and make some serious enhancements to the UNIX shell. What he came out with has been called the "Korn" shell, to make a distinction with the old "shell", now know as the "Bourne" shell. The Korn shell still exists today as a active product being developed (www.kornshell.com). You can download it for free, and even get its source. But some version of the "Bourne" shell is still shipped with most commercial Unices (found as /bin/sh/).
But keep in mind that AT&T was not "open source". So people from early on were trying to write clones of their software. There are clones of both the Bourne shell, such as ash, and also of the Korn shell, such as pdksh. One could argue that bash is a clone of both ksh and csh, merging many features form both.
But nowadays, when you say "Bourne shell", in most contexts you use it basically to refer to the set of features that were present in the original versions of the shell. Almost all shells available today have more than just this. A large part of this has to do with POSIX, a body who defines standards for what precisely a UNIX shell must be able to do. So many shell creators try to conform to this standard, and if they choose they add more features besides.
So there are many different shells, and some have different emphases, depending on what the author wants to stress in the product. For example, the zsh is really bloated, because it it is geared to be an interative shell -- ie, a shell intended for a human being to enter commands in by hand. So it has a lot of really fancy features to help the user out. Others, like the ash (or Debian's ash called dash) tend to be minimalistic, and opt for small size and fast execution time. These small shell's are geared towards interpreting scripts, and not so much for interactive use.
So to sum, you can view the Korn shell as a super-set of the features availabe in the Bourne shell. But all Bourne-derived shells (i.e, those not in the csh lineage) have the features of the original shell, and so using only those original features in your scripts is good if you want your scripts to be as portable as possible. But in the end, its all pretty much the same language...."Bourne", one might call it....or, because "Bourne" is really the only shell scripting language used actively on Unix, you can just say "Unix shell scripting language", and every one will understand that you mean some dialect of "Bourne". (You could learn to script in the csh language, but no one really uses it, and so it may not be worth your time. Learn the Bourne style programming.)
If you are interested to learn more about Unix shells, search Google for "Unix history" and 'Unux shell history". Like try this site...http://www.phys.ualberta.ca/~gingric...ls/shells.html

Last edited by hadarot; 08-13-2005 at 05:24 AM..
  #5 (permalink)  
Old 08-10-2005
tads98 tads98 is offline
Registered User
  
 

Join Date: May 2005
Posts: 40
thanks for the help!
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:26 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0