[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: |
Fri, 14 Jul 2017 11:16:32 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
Follow-up Comment #20, bug #51388 (project octave):
It also failed when I ran it on a Windows systems. Then I added a couple of
lines to show what directory names were being compared:
--- cwdtest.cc~ 2017-07-14 10:42:38.406610572 -0400
+++ cwdtest.cc 2017-07-14 11:10:25.000259589 -0400
@@ -93,6 +93,9 @@
std::string new_pwd = octave::sys::env::get_current_directory ();
new_pwd = octave::sys::canonicalize_file_name (new_pwd);
+ std::cerr << "new: " << new_pwd << std::endl;
+ std::cerr << "old: " << dir << std::endl;
+
while (new_pwd != dir)
{
num_failures++;
and in my case, it was failing like this:
>> cwdtest c:\users\jwe z:\downloads
new: C:\Users\jwe
old: c:\users\jwe
cwdtest: FAIL getcwd != destdir
Those are really the same directory, but the strings obviously don't compare
equal.
_______________________________________________________
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, (continued)
- [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, 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 <=
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems, John W. Eaton, 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, Markus Mützel, 2017/07/14
- [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, Mike Miller, 2017/07/14
- [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/15
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems, Andrey Aleshin Igorevich, 2017/07/17
- [Octave-bug-tracker] [bug #51388] Current directory does not change immediatly with "cd" on some systems, Andrey Aleshin Igorevich, 2017/07/17