Hi!

----

AFAIK the following *two* testcases should throw an error because the
source variable doesn't exist:
1. Simple version:
-- snip --
$ VMALLOC_OPTIONS=abort ~/bin/ksh -c 'set -o nounset ; typeset -m
a=nothinghere ; true'
-- snip --

2. Version using namerefs:
-- snip --
$ VMALLOC_OPTIONS=abort ~/bin/ksh -c 'set -o nounset ; function vm {
nameref s1=$1 s2=$2 ; typeset -m s1=s2 ; } ; vm a b ; typeset -p a ;
true'
-- snip --

----

Bye,
Roland

P.S.: AFAIK if this gets implemented we may see some typeset -m
malfunctions much earlier...

-- 
  __ .  . __
 (o.\ \/ /.o) [email protected]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)
_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers

Reply via email to