bugGNU Octave - Bugs: bug #34497, 'clear -f' does not work for...

 
 

bug #34497: 'clear -f' does not work for command line functions

Submitted by:  Rik <rik5>
Submitted on:  Thu 06 Oct 2011 06:18:51 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: NoneAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 23 Jul 2012 04:56:14 PM UTC, comment #3:

Fixed in 1f5dbfc23fc2
http://hg.savannah.gnu.org/hgweb/octave/rev/1f5dbfc23fc2

Max Brister <fisheater>
Project Member
Fri 07 Oct 2011 04:21:40 PM UTC, comment #2:

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

Rik <rik5>
Project Administrator
Thu 06 Oct 2011 08:12:41 PM UTC, comment #1:

http://hg.savannah.gnu.org/hgweb/octave/file/834f904a3dcb/src/symtab.h#l652

John W. Eaton <jwe>
Project Administrator
Thu 06 Oct 2011 06:18:51 PM UTC, original submission:

This is a regression that happened between versions 3.0.5 and 3.2.3.

The following code fragment demonstrates the issue

Rik <rik5>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by fisheater (Posted a comment)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by rik5 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 23 Jul 2012 04:56:14 PM UTCfisheaterOpen/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1