This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug cli/15145] cd and $cwd do not handle symlink/../ correctly
- From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 14 Feb 2013 13:00:39 +0000
- Subject: [Bug cli/15145] cd and $cwd do not handle symlink/../ correctly
- Auto-submitted: auto-generated
- References: <bug-15145-4717@http.sourceware.org/bugzilla/>
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.