This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Show (tilde-)expanded filenames to the user?
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Azat Khuzhin <a3at dot mail at gmail dot com>, gdb-patches at sourceware dot org
- Date: Fri, 09 Aug 2013 16:22:44 +0100
- Subject: Re: [RFC] Show (tilde-)expanded filenames to the user?
- References: <1375909475-16720-1-git-send-email-a3at dot mail at gmail dot com> <5203D88C dot 8060801 at redhat dot com> <87ppto3qu7 dot fsf at fleche dot redhat dot com>
On 08/08/2013 08:49 PM, Tom Tromey wrote:
>>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
>
> Pedro> But, I think we should have a policy here, and all commands
> Pedro> should follow it. Those that don't would be considered
> Pedro> bugs. The question then is, which policy is most appropriate?
> Pedro> grepping around for "tilde_expand", it seems to be the
> Pedro> showing expanded filenames is more common.
>
> I tend to think that showing the expanded name is best.
> My reason is that this way the user sees what actually happened.
Alright, I audited tilde_expand uses throughout the tree, and
noticed most indeed show the expanded string to the user. I'm
pushing a few patches to fix easy cases that didn't do that.
Thanks,
--
Pedro Alves