Path: utzoo!attcan!uunet!husc6!bloom-beacon!mit-eddie!ll-xn!ames!oliveb!sun!gorodish!guy From: guy@gorodish.Sun.COM (Guy Harris) Newsgroups: comp.unix.wizards Subject: Re: ksh incompatabilities with sh? Message-ID: <54188@sun.uucp> Date: 23 May 88 18:38:10 GMT References: <2599@usceast.UUCP> <2601@usceast.UUCP> <4402@vdsvax.steinmetz.ge.com> <4627@hoptoad.uucp> Sender: news@sun.uucp Lines: 17 > > Well, no, you really can't, not always. There are supposedly a few real > > live incompatibilities that may break some scripts. > > I have heard this too, over the years, and would like real > documentation on what's wrong. All I know is that somebody tried doing exactly that (replacing "/bin/sh" with the Korn shell) on a system with an S5R2 or later Bourne shell, and found that a lot of his shell scripts broke. It happened a while ago, and he doesn't remember what broke; I didn't see much point in requesting that he go through the whole exercise again to reconstruct the problems. He does admit to using the Bourne shell (and lots of other UNIX tools) in ways that most people wouldn't think of, so it may be that he hit some corner case where the two shells behave incompatibly. The Korn shell (the pre-"ksh-i" version, anyway) does come with a file named COMPATIBILITY that lists a number of "sh"/"ksh" incompatibilities.