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

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

[Octave-bug-tracker] [bug #40319] deleting script file in a function/scr


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #40319] deleting script file in a function/script doesn't update the symbol table
Date: Sun, 20 Oct 2013 21:29:09 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0

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

                 Summary: deleting script file in a function/script doesn't
update the symbol table
                 Project: GNU Octave
            Submitted by: pantxo
            Submitted on: dim. 20 oct. 2013 21:29:09 GMT
                Category: None
                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:

If I delete a script file in a script or a function, I have to go back to
prompt to have the symbol table updated. The following test shows the bug:


cd (tempdir ());

## create two files 
id = fopen ("scripta.m", "w+");
fclose (id);
mkdir ("foo");
id = fopen ("foo/scripta.m", "w+");
fclose (id);

addpath (fullfile (tempdir, "foo"));

## delete the first one in the path
file = which ("scripta");
delete (file);
retval = exist ("scripta.m", "file")


retval should be 2 and I see 0 instead. Back in the octave prompt, evaluating 
the last line gives the good result:



>> exist ("scripta.m", "file")
ans =  2





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

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