Hi Thorsten,

Yes I've run them in both environments, since "ksh -n" is no guarantee 
that the code will actually work.

Jonathan

Thorsten Frueauf wrote:
> Hi Jonathan et al,
> 
> I am fine with your changes. I trust you did a "ksh -n" on the changed 
> files and tried them for both (88/93).
> 
> Greets
>       Thorsten
> 
> Jonathan Mellors wrote:
>> Hi Folks,
>>
>> When we started Colorado on opensolaris we discovered that some of our 
>> ksh scripts didn't work with ksh93, so we temporarily switched them to 
>> /usr/xpg4/bin/sh. I've now updated our build tools to be compatible 
>> with both ksh88 and ksh93.
>>
>> The changes are:
>> - Change "local" to "typeset"
>> - Change function declarations from "foo()" to "function foo" to 
>> ensure local variables don't leak out of their functions.
>> - Fix incorrect variable declarations
>> - Change "`...`" to "$(...)"
>> - Internal ksh93 tee sometimes receives interrupts so force use of 
>> /bin/tee.
>>
>> http://cr.opensolaris.org/~jmellors/ohac-tools-ksh88-93/
>>
>> Thanks
>> Jonathan
> 

Reply via email to