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

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

[Octave-bug-tracker] [bug #48080] file_in_loadpath fails after hgsave


From: Rik
Subject: [Octave-bug-tracker] [bug #48080] file_in_loadpath fails after hgsave
Date: Wed, 1 Jun 2016 16:24:12 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

URL:
  <http://savannah.gnu.org/bugs/?48080>

                 Summary: file_in_loadpath fails after hgsave
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Wed 01 Jun 2016 09:24:10 AM PDT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Run the attached script tst_hgsave.m under Octave.

The script is


graphics_toolkit qt
unlink ("foo.var");
clear

sombrero ();
hgsave (gcf, "foo.var");

filp = file_in_loadpath ("foo.var");
if (isempty (filp))
  error ("File foo.var not found");
endif


The file foo.var is created by hgsave, but file_in_loadpath fails to detect
it.  However, once Octave has returned to a command prompt, file_in_loadpath
is accurate.

Putting in a pause(1) statement after the hgsave and before the call to
file_in_loadpath does not make this work.  However, putting in a keyboard
statement which forces a return to a debug prompt does make it work.





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 01 Jun 2016 09:24:10 AM PDT  Name: tst_hgsave.m  Size: 185B   By:
rik5

<http://savannah.gnu.org/bugs/download.php?file_id=37336>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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