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

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

[Octave-bug-tracker] [bug #51388] Current directory does not change imme


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems
Date: Mon, 17 Jul 2017 04:43:46 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #31, bug #51388 (project octave):

Thank you, Andrey. Together with your results from your latest tests in bug
#51203, it looks like "cd" is working as expected. There might still be a
small chance that something is off when calling "cd" just before spawning a
sub-process with "system".
Can you run the following script and report whether it gives any output for
you?

d1='C:\05octave\1';
d2='C:\05octave\2';

for i = 1:200
  cd (d1)
  [~, scd] = system ("cd");
  while ~strncmpi (d1, scd, length(d1))
    warning ('bug triggered');
    cd (d1)
  endwhile
  cd (d2)
  [~, scd] = system ("cd");
  while ~strncmpi (d2, scd, length(d2))
    warning ('bug triggered');
    cd (d2)
  endwhile
endfor



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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