ksh and sh

Andries Brouwer aeb at cwi.nl
Sat Jul 15 22:49:41 AEST 1989


In article <372 at trevan.UUCP> trevor at trevan.UUCP (trevor) writes:
>
...
>	Is there anything wrong in changing the name of ksh to sh or
>is there any incompatability.

I have been bitten several times, especially when installing new
versions of system software, by the fact that ksh does not
search the PATH for each command, but remembers where the command
was. (I.e., some commands, sometimes all commands,
are tracked aliases. There is an option to make all commands
tracked aliases, but none to switch off this `feature'.)
In an environment where one may have test versions of the software
in one directory, and later move this to the final destination,
or where one may create private versions of software in one's
own bin directory, it is really very annoying to have ksh run
different commands than sh.
I have even had ksh expand the first argument to nohup, in a
situation where nohup was the name of a shell script of my own,
and the first argument was not at all a command name.
Thus: ksh is a beautiful shell, but incompatible with sh.
I think it was a mistake to make tracked aliases
the default - I much prefer correct actions above fast actions.




-- 
      Andries Brouwer -- CWI, Amsterdam -- uunet!mcvax!aeb -- aeb at cwi.nl



More information about the Comp.unix.questions mailing list