LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-02-2011, 08:00 PM   #1
Heffy06
LQ Newbie
 
Registered: Jan 2011
Posts: 4

Rep: Reputation: 0
Disadvantages of using a Korn shell?


Ive been playing around with Linux a little bit and have started to look into different shell types. I know BASH is the most basic, or that is in most distro. but is there any disadvantages of using a Korn shell instead?
 
Old 02-02-2011, 08:33 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
I'd say the main disadvantage would be that you'll feel naked whenever you have to use a machine where korn shell is not installed.

Evo2.
 
Old 02-02-2011, 08:35 PM   #3
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
Yes, there is. It is almost as bad as the bad-old Bourne shell: Just a '\h\w$' prompt. You can't see the working directory, nor can you see any other information (such as who's logged in or what the computer's host name is).
 
0 members found this post helpful.
Old 02-02-2011, 08:43 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Quote:
Originally Posted by Kenny_Strawn View Post
Yes, there is. It is almost as bad as the bad-old Bourne shell: Just a '\h\w$' prompt. You can't see the working directory, nor can you see any other information (such as who's logged in or what the computer's host name is).
Umm, sounds like you didn't bother to learn how to configure it.

Evo2.
 
Old 02-02-2011, 10:09 PM   #5
tacticalbread
Member
 
Registered: Jan 2011
Location: IN
Distribution: Arch x64 multilib
Posts: 79

Rep: Reputation: 13
Quote:
Originally Posted by evo2 View Post
I'd say the main disadvantage would be that you'll feel naked whenever you have to use a machine where korn shell is not installed.

Evo2.
This.

I'm not personally a ksh user (I prefer zsh), but I can't stand to use bash anymore, after using zsh.
 
Old 02-02-2011, 10:29 PM   #6
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by Heffy06
Ive been playing around with Linux a little bit and have started to look into different shell types. I know BASH is the most basic, or that is in most distro. but is there any disadvantages of using a Korn shell instead?
Hmm, well - what are you talking about? For scripting or interactive use?

For scripting, if portability is a concern, you really should use Bourne shell (sh).

For interactive use, it's very much a personal preference thing. Try a couple out and see what you think. I'm fond of tcsh; I have peers who use bash, ksh, csh...
 
Old 02-03-2011, 04:00 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,676

Rep: Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455
I played with korn a very long time ago in unix. It is not as popular but if one knows all the differences then it is useful as any shell.

This may be best answer.

http://www.kornshell.com/info/

Last edited by jefro; 02-04-2011 at 03:20 PM.
 
Old 02-04-2011, 12:02 AM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,374

Rep: Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383
bash is the default shell on Linux. Until the more recent versions of bash, it was closely based on ksh ie most scripts could be ported between the 2 fairly easily (not inc gnu versions of utilities/external cmds obviously).

ksh was usually the most common default on commercial Unixes like Solaris & HP-UX. It's only relatively recently that bash has been avail on them.
If you're always/mostly going to be working on Linux, you may want to go with bash, as that's what most people will assume if you ask shell related qns.

BTW: I highly recommend explicitly specify the shell at the top of any serious shell scripts, as this prevents accidents when run in a different shell by mistake.

HTH

Last edited by chrism01; 02-04-2011 at 12:03 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
learning korn shell Madison00 Linux - Newbie 2 12-15-2010 09:46 AM
korn shell and spellcheck kofucii Linux - Newbie 1 08-20-2009 06:41 PM
korn shell loop jonlake Programming 2 03-28-2008 12:10 PM
korn shell tutorial/course kapilcool Linux - Certification 2 11-13-2006 09:18 PM
Korn shell script Muzica Solaris / OpenSolaris 4 09-06-2004 12:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration