octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #41978] hgload not finding correct *.ofig file


From: Massimiliano Fasi
Subject: [Octave-bug-tracker] [bug #41978] hgload not finding correct *.ofig file
Date: Fri, 28 Mar 2014 09:24:23 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0

Follow-up Comment #2, bug #41978 (project octave):

Hi all,

I am insterested in this bug as I have written the two buggy functions.
Nevertheless, I haven't been able to reproduce the problem. I did


>> plot([1,2,3]);
>> hgsave("foo");
warning: hgsave: no extension given, using .ofig
warning: called from
    hgsave at line 59 column 5
>> hgload("foo")
warning: hgload: no extension given, trying with .ofig
warning: called from
    hgload at line 35 column 5


and it worked. So I tried


>> A = [1,1,1];
>> save "foo" A
>> hgload("foo")
warning: hgload: no extension given, trying with .ofig
warning: called from
    hgload at line 35 column 5


and it worked. Then I removed the file foo.ofig and I got


>> hgload("foo")
warning: hgload: no extension given, trying with .ofig
warning: called from
    hgload at line 35 column 5
error: hgload: no such file
error: called from:
error:   /home/max/src/octave/build/../scripts/plot/util/hgload.m at line 42,
column 5


that is what I would have expected. So, I put a file foo.m in the current
directory, getting again


>> hgload("foo")
warning: hgload: no extension given, trying with .ofig
warning: called from
    hgload at line 35 column 5
error: hgload: no such file
error: called from:
error:   /home/max/src/octave/build/../scripts/plot/util/hgload.m at line 42,
column 5


that seems ok to me. Then I tried to plot, save and load again and it worked
as in the previous case. So I haven't tested the right (faulty) case, or the
behaviour I expect isn't the right one. Can you please help me understand the
problem? Thanks!

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41978>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]