octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug: clear leaves global variables in symbol table


From: Rik
Subject: Bug: clear leaves global variables in symbol table
Date: Sat, 06 Jun 2009 15:15:52 -0700
User-agent: Thunderbird 2.0.0.21 (X11/20090318)

6/6/09

In the Mercurial tip, 'clear' by itself should remove both local and
global variables according to the documentation.  Instead it only
appears to remove global variables but they still exist according to
'who global'.

Code to reproduce:
global abc = 1
who
=>
Variables in the current scope:

abc  ans
----------------
clear
who
=>
(blank)
---------------
who global
=>
Global variables:

abc
----------------

The behavior is correct if 'clear -g' is used instead of just 'clear'.

--Rik





reply via email to

[Prev in Thread] Current Thread [Next in Thread]