[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51388] Current directory does not change imme
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems |
Date: |
Wed, 5 Jul 2017 18:16:35 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
Follow-up Comment #10, bug #51388 (project octave):
I didn't notice the attached file earlier. I used the code in the inline code
block.
If it is the attached file that shows the problem for you, then I don't
understand why you are blaming cd. Where is the cd in that?
Is the problem that the file that xlswrite is supposed to produce is not
created before the call to exist? If so, how is xlswrite creating the file on
the systems where it fails? Is it using some external process that might not
be flushing the file contents before it returns?
Can you reproduce the problem if you use fopen/fwrite/fclose instead? For
example, something like this:
more off
filename = [mfilename('fullpath'), '.xlsx'];
for i= 1:10000
if exist(filename, "file")==2
delete(filename);
end
if exist(filename, "file")==2
error ("File NOT deleted!, i = %d", i);
end
t_xlsx = tic;
fid = fopen (filename, "w");
fwrite (fid, rand (100));
fclose (fid);
toc (t_xlsx)
if !exist (filename)
error ("xlsx file NOT created!, i = %d", i);
endif
endfor
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51388>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems, Markus Mützel, 2017/07/05
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems, Philip Nienhuis, 2017/07/05
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems, Markus Mützel, 2017/07/05
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems, Markus Mützel, 2017/07/05
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems, Philip Nienhuis, 2017/07/05
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems, Mike Miller, 2017/07/05
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems, Markus Mützel, 2017/07/05
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems, John W. Eaton, 2017/07/05
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems, Philip Nienhuis, 2017/07/05
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems, Mike Miller, 2017/07/05
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems,
John W. Eaton <=
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems, John W. Eaton, 2017/07/05
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems, Mike Miller, 2017/07/05
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems, Markus Mützel, 2017/07/06
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems, Philip Nienhuis, 2017/07/06
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems, Mike Miller, 2017/07/12
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems, Mike Miller, 2017/07/12
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems, Philip Nienhuis, 2017/07/14
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems, Markus Mützel, 2017/07/14
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems, Mike Miller, 2017/07/14
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems, John W. Eaton, 2017/07/14