There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
Solved: ksh vs. bash


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
needsleep's Avatar
Member with 99 posts.
 
Join Date: Sep 2005
Location: Minnesota
Experience: Intermediate
08-Oct-2005, 05: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
Distinguished Member with 12,604 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
08-Oct-2005, 06: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, 07: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
Distinguished Member with 12,604 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
08-Oct-2005, 09: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 893 posts.
 
Join Date: Aug 2005
Location: Right here.
Experience: 31337
08-Oct-2005, 10: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 99 posts.
 
Join Date: Sep 2005
Location: Minnesota
Experience: Intermediate
10-Oct-2005, 10: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, 06: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


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 Off
Refbacks are Off

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 05:58 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.