On Fri, Feb 18, 2011 at 12:12:18PM -0500, David Korn wrote:
> cc: [email protected]
> 
> This is a bug since the POSIX standard says that $0 should not change.
> I will fix this in ksh93u+.  ksh93u is the most recent official ksh93.
> 
> However, POSIX function can be recursive in Korn shell, for example
> 
> foo()
> {
>         echo name=$0 "$@"
>         if      [[ $1 ]]
>         then    shift
>                 foo "$@"
>         fi
> }
> foo "$@"

Many thanks for clarification.  Now my question is: does there
exist a simple fix for ksh93t+?  Or can the fix backported to
ksh93t+? This because a version update in an existing product
in normal case a nogo as this destroys e.g. any certification.

Werner

-- 
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to