Is the following supposed to work?

  #!/usr/bin/ksh

  A=( typeset a1 )

  function A.a1.get
  {
      .sh.value="foo"
  }

  B=( b1="${A.a1}" )

The last line produces the error message:

  ./t[10]: A.a1.get: line 7: B.sh.value=foo: invalid variable name

No problem, however, if either no function A.a1.get is defined, or the last line is replaced by

  B=()
  B.b1="${A.a1}"

It might have to do with the fact that there is only one global .sh.value, though the error message suggests that it is bound to B.

Regards,
Bernd

--
Bernd Eggink
[EMAIL PROTECTED]
http://sudrala.de
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to