LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 03-08-2007, 05:14 AM   #1
noir911
Member
 
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
bash or ksh


Don't want to start a holy war here. I been using bash for a long time and use it on Linux and BSD. Since OpenBSD promotes ksh I was wondering if it would be worth convert to ksh fomr productivity gain etc. purposes (if there's any!)

I would expect an answer from someone who has converted from bash to ksh or use bash and ksh at the same time.

Thanks.
 
Old 03-08-2007, 06:56 AM   #2
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 31
I've used both. ksh has a few capabilities that bash does not, and vice versa. In addition to those minor differences, there is the consideration of which shell to use for scripts you will be sharing with others in your computing community.
  1. If you hang with Linux folks, sharing bash scripts with them will flow more smoothly, because most of them already use bash.
  2. If you hang with developers in the commercial software Unix world (AIX, Sun, etc.), or I guess also OpenBSD (I was not aware of that), sharing ksh scripts with them will flow more smoothly, because most of them already use ksh.

For differences between bash and ksh, go here:

http://www.faqs.org/faqs/unix-faq/shell/bash/

... and search that page for "Korn" or "ksh".

That page also has much other useful bash info.

Hope this helps.

Last edited by wjevans_7d1@yahoo.co; 03-08-2007 at 06:58 AM.
 
Old 03-08-2007, 11:05 AM   #3
vermaden
Member
 
Registered: Jan 2006
Location: pl_PL.lodz
Distribution: FreeBSD
Posts: 406

Rep: Reputation: 89
Quote:
bash or ksh
best choice: zsh.

Even bash with bash-completion is nothing comparing to zsh functionality.
 
Old 05-09-2007, 11:46 AM   #4
Oupa
LQ Newbie
 
Registered: Apr 2007
Location: Welkom, South Africa
Distribution: RHL + Mandriva
Posts: 15

Rep: Reputation: 0
ksh versus bash

I agree, ksh is more powerfull but unless you are going to do the trouble to study the advantages of ksh it may be better to stick to bash which is more prevalent in Linux. Oupa. [Previously used ksh with AIX Unix, now using bash with Linux]
 
Old 05-09-2007, 06:11 PM   #5
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
I would learn both. I liked both and thought each had it's own advantages and disadvantages. I used bash at home but the AIX machine at work used ksh.
 
Old 05-10-2007, 11:08 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by vermaden
best choice: zsh.

Even bash with bash-completion is nothing comparing to zsh functionality.
I was going to suggest that as well.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash more bloated than ksh? noir911 Linux - General 4 10-10-2006 04:58 PM
It is possible to change ksh script on a SUN into bash richikiki Programming 2 06-20-2006 06:08 AM
processing a ksh shell in bash environment ntoughe Programming 9 09-12-2005 05:09 AM
bash/ksh variables question tpe Programming 2 08-11-2005 09:39 AM
ksh commands in bash nkelle Linux - General 2 11-13-2003 11:11 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 03:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration