There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus batch bios bsod computer crash driver drivers error ethernet excel freeze gaming google gpu hard drive hardware hdmi internet java laptop malware memory missing monitor motherboard mouse network printer problem ram registry router slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Solved: ksh vs. bash

Reply  
Thread Tools
needsleep's Avatar
Member with 110 posts.
 
Join Date: Sep 2005
Location: Minnesota
Experience: Intermediate
08-Oct-2005, 06:08 AM #1
Solved: ksh vs. bash
I'm used to HP-UX ksh. I recently installed a copy of redhat ent linux 3 on my PC - I know, its out of date, but that's where I am. Can I "do everything" I need to do in ksh, or should I take the time to learn bash? Are they much different?
Squashman's Avatar
Trusted Advisor with 18,705 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: Bocks of Rox
08-Oct-2005, 07:24 PM #2
I really wouldn't say Rh3 enterprise is out of date. I have not worked much in KSH but from helping others use it I find that it lacks in alot of features that BASH has. Hard core KSH will tell you that it is more stable than Bash.
tsunam's Avatar
Senior Member with 1,246 posts.
 
Join Date: Sep 2003
Experience: Linux~su
08-Oct-2005, 08:21 PM #3
ZSH all the way Great little shell, that doesn't lack BASH stuff but in fact improves on a good bit.
Squashman's Avatar
Trusted Advisor with 18,705 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: Bocks of Rox
08-Oct-2005, 10:36 PM #4
Quote:
Originally Posted by tsunam
ZSH all the way Great little shell, that doesn't lack BASH stuff but in fact improves on a good bit.
Hmm, never heard of that one. I might have to try it out.
O111111O's Avatar
Computer Specs
Senior Member with 896 posts.
 
Join Date: Aug 2005
Location: Right here.
Experience: 31337
08-Oct-2005, 11:16 PM #5
Good table of differences below.

http://www.faqs.org/faqs/unix-faq/sh...l-differences/

There are some subtle differences. If you're a crusty KSH scripter (like me), you'll see some issues crop up. Have alot of kshell scripts that poll devices for portcounts and insert into perl DBI connector, biggest thing I've found have been syntax (set, export, for, array, etc.)

FYI, you can compile BASH for HPUX 11x, Solaris 8,9,10.

My peers give me a hard time quite a bit (i.e., "good to see you're using something out of the 90's!).....
__________________
That's nice, last I read; there was a free opensource dev for [insert product name here]
needsleep's Avatar
Member with 110 posts.
 
Join Date: Sep 2005
Location: Minnesota
Experience: Intermediate
10-Oct-2005, 11:00 AM #6
Thanks to all for their inputs.
Squashman - I found a gold mine in your "How to ask questions ..." piece!
FAQ is really what I needed. Probably a lot of other stuff in there I will read too.
tsunam's Avatar
Senior Member with 1,246 posts.
 
Join Date: Sep 2003
Experience: Linux~su
10-Oct-2005, 07:39 PM #7
Squashman, if you want some stuff for your .zshrc let me know. A bit of it is gentoo specific etc but will work for other things so
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:52 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.