[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38086] "clear all" does not clear variables d
From: |
Arun Giridhar |
Subject: |
[Octave-bug-tracker] [bug #38086] "clear all" does not clear variables defined on command line? |
Date: |
Mon, 14 Jan 2013 19:49:03 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 |
URL:
<http://savannah.gnu.org/bugs/?38086>
Summary: "clear all" does not clear variables defined on
command line?
Project: GNU Octave
Submitted by: arungiridhar
Submitted on: Mon 14 Jan 2013 02:49:02 PM EST
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Inaccurate Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
I noticed this odd behavior crop up recently with "clear all" and "whos". It
does not break any of my code, but I thought I should report it if it is a
symptom of something deeper.
Try running the following from the octave command prompt:
clear all; clc; i = 20; j = 10; k = 50; foo = 23; whos; clear all; whos
On my system (Ubuntu 12.04.1 64 bit on x86_64) the output is:
Variables in the current scope:
Attr Name Size Bytes Class
==== ==== ==== ===== =====
foo 1x1 8 double
i 1x1 8 double
j 1x1 8 double
k 1x1 8 double
Total is 4 elements using 32 bytes
Variables in the current scope:
Attr Name Size Bytes Class
==== ==== ==== ===== =====
foo 0x0 0 unknown
i 0x0 0 unknown
j 0x0 0 unknown
k 0x0 0 unknown
Total is 0 elements using 0 bytes
HOWEVER: creating a .m script file with the above line of code and then
calling that script makes "clear all" work properly, and the second "whos"
does not list any variables in that case.
Could someone please verify this behavior?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38086>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #38086] "clear all" does not clear variables defined on command line?,
Arun Giridhar <=