octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #34497] 'clear -f' does not work for command l


From: Rik
Subject: [Octave-bug-tracker] [bug #34497] 'clear -f' does not work for command line functions
Date: Fri, 07 Oct 2011 16:21:40 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0

Follow-up Comment #2, bug #34497 (project octave):

A second example of the same issue is test functions declared with the
'%!function' syntax.  Tests are run by the script test.m which uses eval to
bring test functions into existence.  It uses 'clear function_name' after the
test to remove them from the user's workspace.  Because clear does not work
for command line functions these test functions do end up polluting the user's
workspace.

Example code


which xassert
test unwrap
PASSES 5 out of 5 tests
which xassert
`xassert' is a command-line function



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34497>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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