On Tuesday, February 19, 2013 01:05:44 PM Clark WANG wrote:
> On Fri, May 4, 2012 at 10:42 AM, Clark Wang <[email protected]> wrote:
> 
> > See following example:
> >
> > $ echo ${.sh.version}
> > Version jM 93u 2011-02-08
> > $ x=123
> > $ function x.unset { return; }
> > $ echo x=$x
> > x=123
> > $ unset -v x
> > $ echo x=$x
> > x=
> > $
> >
> > But according to the ksh manual, "If  the unset discipline is defined for
> > a variable, ... The variable will not be unset unless it is unset
> > explicitly from within this discipline function."
> >
> 
> 93v- 2013-02-13 still has this problem.

Attempting to access the variable afterwards seems to be possibly problematic 
as well.

 $ ksh -c 'function x.unset { print -ru2 -- "$_"; }; x=foo; unset -v x; echo 
"$x"'
foo
Segmentation fault
-- 
Dan Douglas
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to