[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44854] when calling a scrypt octave is return
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #44854] when calling a scrypt octave is returning a variable value |
Date: |
Thu, 16 Apr 2015 13:01:47 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0 |
Update of bug #44854 (project octave):
Status: None => Invalid
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
Hi,
This is the normal behavior, not a bug.
When you execute "et" in the command window, Octave first searches for
variables and then function and scripts named "et". When you first run your
script, "et" is not defined as a variable so Octave runs the script "et.m".
After that an "et" variable is defined and will shadow the "et.m" script
itself.
Remember that scripts, unlike functions, are run in the base workspace (the
one you are working in when in the command window).
The workaround is to not define a variable with the same name as the script
(highly recommended) or to "clear et" before trying to run the script.
Closing the bug report.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44854>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/