LinuxQuestions.org
Visit Jeremy's Blog.
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 06-25-2008, 03:08 AM   #1
vikashtulsiyan
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Rep: Reputation: 0
IS bash fully compatible with ksh


Hi
I want to know if bash is fully compatible with ksh. I have a huge application in ksh and i am planning to migrate it to bash shell. Are there any major incompatibilities??
Thanks in advance
 
Old 06-25-2008, 04:40 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 61
Generally ksh scripts will run in Bash. But there are different ksh versions too (ksh88, ksh-93).

But search the bash FAQ for the term "ksh": ftp://ftp.cwru.edu/pub/bash/FAQ for a list of differences.
 
Old 06-25-2008, 04:56 AM   #3
LiamFromLeeds
Member
 
Registered: Dec 2006
Distribution: Arch
Posts: 44

Rep: Reputation: 15
Similair but not the same....

Code:
$cat /tmp/test.ksh
#!/bin/ksh

print "Hello"
$
$cat /tmp/test.bash
#!/bin/bash

print "Hello"
$
$/tmp/test.ksh
Hello
$
$/tmp/test.bash
/tmp/test.bash: line 3: print: command not found
$

$
 
  


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
Bash vs ksh Nickbrandson Linux - Newbie 7 04-23-2008 07:40 PM
bash or ksh noir911 *BSD 5 05-10-2007 12:08 PM
Fully Linux-compatible USB hard drive jrdioko Linux - Hardware 4 07-19-2006 05:01 AM
This is fully compatible with slackware right? darkhatter VectorLinux 1 03-05-2006 11:16 PM
Will this computer I bought be fully linux compatible? bennett.david Linux - Hardware 15 07-17-2004 02:20 PM

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

All times are GMT -5. The time now is 02:48 AM.

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