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

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

[Octave-bug-tracker] [bug #55823] Calling a subfunction containing rmdir


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #55823] Calling a subfunction containing rmdir() from a m-file in nn editortab closes the tab
Date: Fri, 15 Mar 2019 13:52:59 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0 SeaMonkey/2.48

Update of bug #55823 (project octave):

                Category:    Octave Forge Package => GUI                    
                  Status:               Need Info => Confirmed              
                 Summary: [octave forge] (io) xlsread(...) call using OCT
interface interferes with GUI editor => Calling a subfunction containing
rmdir() from a m-file in nn editortab closes the tab

    _______________________________________________________

Follow-up Comment #29:

Just define the following command-line function:

>> function try2_rmdir (fn)
  confirm_recursive_rmdir (0, "local");
  rmdir (fn, "s");
endfunction
>> which try2_rmdir
'try2_rmdir' is a command-line function
>> try2_rmdir (fn)


Then, create some test directory structure (can be empty) in
%APPDATA%\Local\Temp  (in my case C:\Users\Philip\Appdata\Local\Temp), call it
e.g., 'testdir'

In the GUI editor create some m-script file containing:

## substitute your login name
fn = 'C:\Users\<your login name>\AppData\Local\Temp\testdir'
try2_rmdir (fn)

and save it to disk.
Select both lines, and press F9
==> editor tab is closed.

OR,

open the m-script file in an editor tab, and call the script from the command
line
==> same effect, tab is closed.

What I learn from this is that the io package is off the hook (which I
suspected anyway, the io package code has worked fine until early August last
year and works fine in Linux as well)
==> Adapting title
(Hopefully the new title describes the situation more clearly)



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55823>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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