This is the mail archive of the gdb-patches@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]

Re: [PATCH v3 4/5] Implement "set cwd" command on GDB


On 09/29/2017 04:31 PM, Eli Zaretskii wrote:

> But that's an illusory advantage, isn't it?  

I don't think it is.

> Because we then keep "~",
> but it expands to something different for every target, and the user
> has no way of knowing what that will do on another target. 

If the user types "~" then surely they want the home directory,
whatever it is on the machine.  That's the point of "~" existing,
IMO.

> Moreover,
> the user might not even want to have a different expansion for each
> target.

If the user does not want a different expansion for each
target then they can simply specify an expanded path
like "/home/joe" or whatever without the "~".

Thanks,
Pedro Alves


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