Hi!
----
I've hit another problem with discipline functions and "printf":
The following testcase should call the function "i.get" to obtain the
value of the variable "i" but if I only pass the variable name (e.g. as
arithemtric expression) to "printf" the discipline function is not being
called:
-- snip --
$ ksh93 -c 'integer i; function i.get { .sh.value=4 ; } ; print $i ;
printf "%d\n" i'
4
0
-- snip --
AFAIK the testcase should return:
-- snip --
4
4
-- snip --
BTW: If I replace "integer" with "typeset" printf returns the expected
value, e.g. the bug only happens for the "integer" and "float" types ...
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) [email protected]
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users