From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15590 invoked by alias); 9 Aug 2013 15:22:56 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 15551 invoked by uid 89); 9 Aug 2013 15:22:55 -0000 X-Spam-SWARE-Status: No, score=-6.9 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RDNS_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.1 Received: from Unknown (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 09 Aug 2013 15:22:54 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r79FMkix027800 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 9 Aug 2013 11:22:46 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r79FMiI6018760; Fri, 9 Aug 2013 11:22:45 -0400 Message-ID: <52050944.7070304@redhat.com> Date: Fri, 09 Aug 2013 15:22:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Tom Tromey CC: Azat Khuzhin , gdb-patches@sourceware.org Subject: Re: [RFC] Show (tilde-)expanded filenames to the user? References: <1375909475-16720-1-git-send-email-a3at.mail@gmail.com> <5203D88C.8060801@redhat.com> <87ppto3qu7.fsf@fleche.redhat.com> In-Reply-To: <87ppto3qu7.fsf@fleche.redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-08/txt/msg00270.txt.bz2 On 08/08/2013 08:49 PM, Tom Tromey wrote: >>>>>> "Pedro" == Pedro Alves 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