LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 10: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, 10:39 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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, 10: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, 09: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy

All times are GMT -5. The time now is 05:50 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
Open Source Consulting | Domain Registration