1833816 Members
2834 Online
110063 Solutions
New Discussion

KornShell 93

 
SOLVED
Go to solution
KPS
Super Advisor

KornShell 93

Has anyone heard of KornShell 93 and if so have you installed it on HP-UX? I'm getting a request by one of the Developer Type folks to install this, but I'm not aware of any harm this would do if any on HP-UX 11.23? (IA-64).

Any help would be greatly appreciated...

KPS
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor
Solution

Re: KornShell 93

Hi:

Yes. The Korn shell released with HP-UX is Korn-88. You can find an enhanced version (Korn93) in '/usr/dt/bin/dtksh'.

Regards!

...JRF...
KPS
Super Advisor

Re: KornShell 93

Thanks looks like this is the ticket and I was not aware of this.

Much Appreciated!

KPS
Bill Hassell
Honored Contributor

Re: KornShell 93

Just a caution. Resist the temptation to replace /usr/bin/ksh with the contents of dtksh. There are enough differences with ksh93 syntax to make some scripts misbehave. Just make the first line of ksh93 scripts:

#!/usr/dt/bin/dtksh

and all will be well. Note that if the developer wants to make this their login shell, tell them to use this command (root capability not necessary):

chsh someuser /usr/dt/bin/dtksh


Bill Hassell, sysadmin
Avinash Agarkar
Valued Contributor

Re: KornShell 93

Just Enter
# ksh -o vi
and then
. /.profile
you will be in korn shell.

Thnaks,
Avinash
Great Power Comes With Great Responsibility
KPS
Super Advisor

Re: KornShell 93

Bill/Avinash,

Thanks for your replies. I appreciate the caution and other options.

Best Regards,

KPS
James R. Ferguson
Acclaimed Contributor

Re: KornShell 93

Hi KPS:

I'm glad your query has been satistied. Points are appreciated, too. You can reopen your thread to assign them. Thanks!

Regards!

...JRF...