[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51988] syntax error on command syntax in scri
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #51988] syntax error on command syntax in script file when command is shadowed by a variable |
Date: |
Thu, 28 Mar 2024 12:55:13 -0400 (EDT) |
Follow-up Comment #8, bug #51988 (group octave):
I saved the following to a file:
axis = 5
try
axis equal
end
try
axis "equal"
end
clear axis
axis equal
axis "equal"
Trying to execute it results in the following error:
>> test_clear_fcn_name
error: axis: invalid use of symbol as both variable and command near line 3,
column 0 in file D:\repo\Octave\octave-2\.build\test_clear_fcn_
name.m
>>
When I execute these commands one after the other at the octave prompt, the
function `axis` is working correctly again after `clear axis`. The same when I
copy and paste these commands at the octave prompt.
I'd say that error message is specific enough and this report can be closed.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?51988>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
Message not available
Message not available
Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- [Octave-bug-tracker] [bug #51988] syntax error on command syntax in script file when command is shadowed by a variable,
Markus Mützel <=
Message not available