[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #31080] User scripts or functions created duri
From: |
Philip Nienhuis |
Subject: |
[Octave-bug-tracker] [bug #31080] User scripts or functions created during a session are not found |
Date: |
Thu, 17 Oct 2013 20:11:45 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6 |
Follow-up Comment #3, bug #31080 (project octave):
Octave 3.7.7+ MXE GUI built for MinGW, installed on drive X, and Octave-3.6.7+
MXE CLI (ditto):
With either script or function files, it doesn't even work in a subdir of
root:
octave-cli.exe:1> pwd
ans = X:\Octave\octave-3.7.6+_MXE
octave-cli.exe:2> cd f:/tmp
octave-cli.exe:3> edit script.m
octave-cli.exe:5> dir script.m
script.m
octave-cli.exe:6> script
error: 'script' undefined near line 1 column 1
octave-cli.exe:6> rehash
octave-cli.exe:7> script
error: 'script' undefined near line 1 column 1
octave-cli.exe:7> clear -f
octave-cli.exe:8> script
error: 'script' undefined near line 1 column 1
octave-cli.exe:8>
:
:
octave-cli.exe:8> cd /
octave-cli.exe:9> pwd
ans = f:\
octave-cli.exe:10> edit script2.m
octave-cli.exe:11> dir *.m
script2.m
octave-cli.exe:12> script2
error: 'script2' undefined near line 1 column 1
octave-cli.exe:12>
After restarting, Octave behaves even stranger:
octave-cli.exe:1> cd f:\tmp
octave-cli.exe:2> dir *.m
funcfil.m strread_bitw_regexp.m textread.m
script.m strread_bitwidth.m textscan.m
strread.m strread_bitwidth_regexp.m
octave-cli.exe:3> funcfil ## Works OK
Hello world!
octave-cli.exe:4> script ## does nothing
octave-cli.exe:5> type script.m
script.m is the user-defined function defined from: .\script.m
disp ("Hello World!\n")';
octave-cli.exe:6>
octave-cli.exe:7> cd /
octave-cli.exe:8> dir *.m
funcfil2.m script2.m
octave-cli.exe:9> script2 ## Works OK;
Script 2
octave-cli.exe:10> funcfil2
octave-cli.exe:11> funcfil2
octave-cli.exe:12> type funcfil2
funcfil2 is the user-defined function defined from: f:\funcfil2.m
function [retval] = funcfil2 ()
disp ("Funcfil2\n")';
endfunction
octave-cli.exe:13> type script2
script2 is the user-defined function defined from: f:\script2.m
disp ("Script 2\n");
octave-cli.exe:15>which funcfil2
'funcfil2' is a function from the file f:\funcfil2.m
Striking is that it works upon restart for functions but not for scripts in a
subdir, and the other way round in the root dir.
Could these be MinGW bugs (in the gcc runtime libraries)?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?31080>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/