According to the ksh manual, if the append discipline is defined for a
variable, the variable will be *assigned* the value of .sh.value after
the discipline completes. But actually the variable is *appended* with the
.sh.value.
See following example:
$ echo ${.sh.version}
Version jM 93u 2011-02-08
$ x=foo
$ function x.append { .sh.value=$_${.sh.value}; }
$ x+=bar
$ echo $x
foofoobar
$
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users