Gabriele Bulfon <gbul...@sonicle.com> wrote:

> you mean I should try to remove the "local" operators usage so I can still 
> use ksh?

ksh88 (available as "ksh" on Solaris) supports "local". This is implemented by 
a hardwired alias "local=typeset".

ksh93 does not support this feature in a standard compliant environment.

Background: ksh88 and ksh93 support two types of functions

a)

        function name { body; }

b)      name() { body; }

The second form is Bourne Shell and POSIX compatible.

ksh93 does not support local variables inside POSIX functions.

ksh88 supports local variables in both variants of functions.

Given that the scripts do not use "local" for fun, I would assume that removing 
the word will break the scripts.

Maybe this is a reason to rethink whether it is a good idea to install ksh93 as 
/bin/sh on Solaris.

Jörg

-- 
 EMail:jo...@schily.net                    (home) Jörg Schilling D-13353 Berlin
       joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.org/private/ 
http://sourceforge.net/projects/schilytools/files/'


-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com

Reply via email to