[Top][All Lists]

[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

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
  if exist(filename, "file")==2
    error ("File NOT deleted!, i = %d", i);
  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);


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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