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: Mike Miller
Subject: [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems
Date: Wed, 12 Jul 2017 16:19:51 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

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

Philip or Markus - please try the attached oct file. It's a C++ port of
Markus' loop example.

If the oct file returns silently with no messages printed on stderr, then
chdir and getcwd are completely consistent as we expect.

If the m file loop failed to change the directory, then this oct file should
fail as well.

On my system:


>> cwdtest /usr/lib /usr/share
>> ## success


You should be able to pass it either absolute or relative paths.

When I run it under strace here, I can see that the system library functions
chdir and getcwd are called back to back within microseconds of each other and
are always consistent over thousands of test iterations.

(file #41195)
    _______________________________________________________

Additional Item Attachment:

File name: cwdtest.cc                     Size:2 KB


    _______________________________________________________

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]