LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Puppy (https://www.linuxquestions.org/questions/puppy-71/)
-   -   korn shell ( ksh ) (https://www.linuxquestions.org/questions/puppy-71/korn-shell-ksh-524994/)

lechuga 02-02-2007 10:09 AM

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.

MensaWater 02-02-2007 10:39 AM

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).

lechuga 02-02-2007 10:45 AM

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.....

lechuga 02-05-2007 09:43 PM

Hi Folks, I have some news. Downloading and installing ksh rpm from Fedora Core 3 that worked fine.

bye bye amigos....


All times are GMT -5. The time now is 04:08 AM.