Path: utzoo!attcan!uunet!husc6!necntc!frog!john From: john@frog.UUCP (John Woods) Newsgroups: comp.unix.wizards Subject: Re: ksh incompatabilities with sh? Message-ID: <1093@X.UUCP> Date: 25 May 88 04:08:00 GMT References: <2599@usceast.UUCP> <2601@usceast.UUCP> <4402@vdsvax.steinmetz.ge.com> <546@zorch.UU.NET> Organization: Servants of the Great White Frog Lines: 23 In article <546@zorch.UU.NET>, scott@zorch.UU.NET (Scott Hazen Mueller) writes: >In article <54188@sun.uucp> guy@gorodish.Sun.COM (Guy Harris) writes: >>All I know is that somebody tried [replacing "/bin/sh" with >>the Korn shell and] a lot of his shell scripts broke. > When David Korn spoke at the SVNet meeting last month, the question > of compatibility came up briefly (very!). I just leafed through the COMPATIBILITY file that came with ksh-i. Perhaps David Korn could arrange to post the actual thing, but I'll just give a VERY brief summary. It looked to me like the most-commonly-used things that changed were the handling of IFS (now done later, after parameter and command substitution); global environment handling (ksh passes modified environment parameters to children without needing export); and the use of (( to introduce an arithmetic expression instead of a subshell-in-a-subshell. I have not yet met an sh script that ksh couldn't handle just fine -- of course, such exist, but my experience is that they aren't too common. -- John Woods, Charles River Data Systems, Framingham MA, (617) 626-1101 ...!decvax!frog!john, john@frog.UUCP, ...!mit-eddie!jfw, jfw@eddie.mit.edu No amount of "Scotch-Guard" can repel the ugly stains left by REALITY... - Griffy