From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2234 invoked by alias); 5 Jul 2012 17:34:35 -0000 Received: (qmail 2088 invoked by uid 22791); 5 Jul 2012 17:34:34 -0000 X-SWARE-Spam-Status: No, hits=-3.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-yw0-f41.google.com (HELO mail-yw0-f41.google.com) (209.85.213.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 05 Jul 2012 17:34:21 +0000 Received: by yhr47 with SMTP id 47so10008151yhr.0 for ; Thu, 05 Jul 2012 10:34:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.87.70 with SMTP id v6mr38767512paz.14.1341509659973; Thu, 05 Jul 2012 10:34:19 -0700 (PDT) Received: by 10.143.155.9 with HTTP; Thu, 5 Jul 2012 10:34:19 -0700 (PDT) In-Reply-To: <20120705140038.GB27886@host2.jankratochvil.net> References: <20120705140038.GB27886@host2.jankratochvil.net> Date: Thu, 05 Jul 2012 17:34:00 -0000 Message-ID: Subject: Re: [PATCH] cd command defaults to ~ From: Nathaniel Flath To: Jan Kratochvil Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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 X-SW-Source: 2012-07/txt/msg00072.txt.bz2 It's certainly not a huge deal - just something that's been annoying me for a while. As for other possible behaviours - I think the POSIX standard for 'cd' with no arguments is to use the HOME directory, if it is set - http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cd.html is what I was looking at, so I don't think there would be too many people expecting a completely different behaviour . I'd be willing to update the two documents you mentioned, if this is an acceptable change. Thanks, Nathaniel Flath On Thu, Jul 5, 2012 at 7:00 AM, Jan Kratochvil wrote: > On Thu, 05 Jul 2012 04:31:07 +0200, Nathaniel Flath wrote: >> 'cd' in bash defaults to ~, whereas in gdb will throw an error. This >> patch has the 'cd' command in gdb use '~' as a default instead of >> giving this error. > > FYI I do not find it too much required, 'cd ~' is not such a burden, one may > expect that 'cd' without parameters will do 'pwd' (which it does not) etc. > Therefore I do not approve it on my own unless someone else does. > > It would need an update in doc/doc/gdb.texinfo and probably even gdb/NEWS. > > > Regards, > Jan