On 10/4/17 8:52 AM, Joerg Schilling wrote: > Chet Ramey <chet.ra...@case.edu> wrote: > >>> But this is what you get with ksh93: >>> >>> ksh93 -c 'a=0; a() { local a; a=12; } ; a; echo $a' >>> ksh93[1]: local: not found [No such file or directory] >>> 12 >> >> It doesn't work even if you use `typeset', which is accepted. > > But this would prevent ksh93 from being used as /bin/sh on various Linux > distros.
So? Why is that a problem here? We're talking about Posix conformance. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/