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 gdb/15979] current_directory not updated if chdir done from python


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.


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