LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy
User Name
Password
Puppy This forum is for the discussion of Puppy Linux.

Notices

Reply
 
Search this Thread
Old 02-02-2007, 11:09 AM   #1
lechuga
LQ Newbie
 
Registered: Jul 2005
Location: ARGENTINA
Distribution: Red Hat EL4 AS
Posts: 12

Rep: Reputation: 0
korn shell ( ksh )


Hello all. I am working with puppy linux and i need to work with korn shell ( ksh ).

How can I do to install it ?


Thanks in advance.
 
Old 02-02-2007, 11:39 AM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,028
Blog Entries: 5

Rep: Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791
Not really familiar with Puppy. Having a look it appears to be run from a live CD in which case it seems you'd have to burn a CD with ksh on it to do this.

You may not need ksh however. Linux uses bash rather than ksh by default and they have a lot of the same capabilities. If you're running scripts that have something like "#!/bin/ksh" as the first line (called the interpreter line) you can likely fake it out simply by creating a symbolic link from bash to ksh:
ln -s /bin/bash /bin/ksh

Anything that had /bin/ksh for interpreter would actually run /bin/bash instead. There are some differences between the shells but for most purposes they are very similar. I haven't run across any ksh scripts yet that failed to work in bash.

My main reluctance to using bash was the way it does history scrolling since I was used to the way ksh did it. However you can make bash do it the way ksh does it by simply typing "set -o vi" (adding this to your .profile or .bashrc keeps from having to do it every time you login).
 
Old 02-02-2007, 11:45 AM   #3
lechuga
LQ Newbie
 
Registered: Jul 2005
Location: ARGENTINA
Distribution: Red Hat EL4 AS
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jlightner
Not really familiar with Puppy. Having a look it appears to be run from a live CD in which case it seems you'd have to burn a CD with ksh on it to do this.

You may not need ksh however. Linux uses bash rather than ksh by default and they have a lot of the same capabilities. If you're running scripts that have something like "#!/bin/ksh" as the first line (called the interpreter line) you can likely fake it out simply by creating a symbolic link from bash to ksh:
ln -s /bin/bash /bin/ksh

Anything that had /bin/ksh for interpreter would actually run /bin/bash instead. There are some differences between the shells but for most purposes they are very similar. I haven't run across any ksh scripts yet that failed to work in bash.

My main reluctance to using bash was the way it does history scrolling since I was used to the way ksh did it. However you can make bash do it the way ksh does it by simply typing "set -o vi" (adding this to your .profile or .bashrc keeps from having to do it every time you login).

Ok jlightner, i'll try to do that. Thanks!

See you.....
 
Old 02-05-2007, 10:43 PM   #4
lechuga
LQ Newbie
 
Registered: Jul 2005
Location: ARGENTINA
Distribution: Red Hat EL4 AS
Posts: 12

Original Poster
Rep: Reputation: 0
Hi Folks, I have some news. Downloading and installing ksh rpm from Fedora Core 3 that worked fine.

bye bye amigos....
 
  


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
Korn shell [[ ... ]] operator andybengurion Linux - General 1 09-26-2006 04:18 AM
installing korn shell Synric Slackware 3 09-10-2006 09:57 AM
Arrays in Korn Shell...? vous Programming 1 03-26-2005 02:35 AM
Korn shell script Muzica Solaris / OpenSolaris 4 09-06-2004 01:47 PM
a t&t korn shell 93 shook Linux - Software 4 02-01-2003 02:54 PM


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