This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/15979] current_directory not updated if chdir done from python
- From: "palves at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 01 Oct 2013 15:47:11 +0000
- Subject: [Bug gdb/15979] current_directory not updated if chdir done from python
- Auto-submitted: auto-generated
- References: <bug-15979-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=15979
Pedro Alves <palves at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |palves at redhat dot com
--- Comment #2 from Pedro Alves <palves at redhat dot com> ---
> 1) it doesn't handle symlinks (whether it should or not is debatable, so this > could be a non-bug, depending on how wants to define things).
IMO, "cd" should follow continue not resolving symlinks by default, like sh and
bash. See <http://pubs.opengroup.org/onlinepubs/009695399/utilities/cd.html>:
> The following options shall be supported by the implementation:
>
> -L
> Handle the operand dot-dot logically; symbolic link components shall not
> be resolved before dot-dot components are processed (see steps 8. and 9. in
> the DESCRIPTION).
> -P
> Handle the operand dot-dot physically; symbolic link components shall be
> resolved before dot-dot components are processed (see step 7. in the
> DESCRIPTION).
If people want gdb's "cd" to resolve symlinks, we could add -P/-L for that.
--
You are receiving this mail because:
You are on the CC list for the bug.