This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug cli/15145] cd and $cwd do not handle symlink/../ correctly


http://sourceware.org/bugzilla/show_bug.cgi?id=15145

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #4 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2013-02-14 13:00:39 UTC ---
I got now the Comment 1 - it is not about POSIX but about real world bash.

$ touch /tmp/foo/../bar/good
$ touch /tmp/bar/bad
$ cd /tmp/foo/../bar
$ ls good bad
ls: cannot access good: No such file or directory
bad
$ _

So "cd XXX" is a different path than the one used for "touch XXX/file".

While I believe bash is wrong it is probably OK that GDB does copy the bash
behavior.

Interesting, I did not know this bash behavior.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]