ksh command (with ksh NOT installed)

Asked by Bernhard

Say I have zsh installed but not ksh. Then I get the following output:

$ ksh --version
zsh 4.3.6 (x86_64-unknown-linux-gnu)

isn't this funny? I mean it gives me the zsh version. The command "ksh" works but not properly, e.g. it doesn't read .kshrc either.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Bernhard
Solved:
Last query:
Last reply:

This question was originally filed as bug #313886.

Revision history for this message
Florian Diesch (diesch) said :
#1

Thank you for taking the time to report this issue and helping to make Ubuntu better.

Zsh tries to emulate ksh when it is invoked as ksh, so Ubuntu uses zsh as an possible replacement for ksh.

This kind of replacements are managed using the alternative system, see 'man update-alternative' or http://manpages.ubuntu.com/manpages/intrepid/en/man8/update-alternatives.8.html

Use
 update-alternatives --list ksh
to display the available alternatives for ksh,
 update-alternatives --display ksh
to see what foilers are effected by this alternative and
  sudo update-alternatives --config ksh
to change what alternative is actually used.

As this is not a bug I'm going to convert it to a question in the support tracker.

Revision history for this message
Bernhard (b.a.koenig) said :
#2

Thx.