From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25641 invoked by alias); 22 Jul 2012 17:13:23 -0000 Received: (qmail 25630 invoked by uid 22791); 22 Jul 2012 17:13:22 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 22 Jul 2012 17:13:03 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0M7K00000N5NIP00@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Sun, 22 Jul 2012 20:13:00 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M7K0005XNTO8FB0@a-mtaout20.012.net.il>; Sun, 22 Jul 2012 20:13:00 +0300 (IDT) Date: Sun, 22 Jul 2012 17:13:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH] cd command defaults to ~ In-reply-to: To: Nathaniel Flath Cc: jan.kratochvil@redhat.com, tromey@redhat.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <837gtv1zz5.fsf@gnu.org> References: <20120705140038.GB27886@host2.jankratochvil.net> <87d34arsf3.fsf@fleche.redhat.com> <20120707061655.GA28438@host2.jankratochvil.net> <20120722163408.GA20790@host2.jankratochvil.net> 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/msg00432.txt.bz2 > Date: Sun, 22 Jul 2012 09:37:04 -0700 > From: Nathaniel Flath > > index: NEWS > =================================================================== > RCS file: /cvs/src/src/gdb/NEWS,v > retrieving revision 1.533 > diff -u -r1.533 NEWS > --- NEWS 4 Jul 2012 20:49:56 -0000 1.533 > +++ NEWS 7 Jul 2012 04:28:05 -0000 > @@ -3,6 +3,8 @@ > > *** Changes since GDB 7.4 > > +* The 'cd' command now defaults to using '~' if not given an argument. OK, but since not everyone is born knowing what '~' means (think Windows users), I would suggest a small correction: The 'cd' command now defaults to using '~' (the home directory) if not given an argument. > @kindex cd > @cindex change working directory > @item cd @var{directory} As Jan points out, the DIRECTORY part is now optional, which we express by [...]. So: @item cd @r{[}@var{directory}@r{]} (The @r{} parts are needed to countermand the default @code formatting of the @item line.) > -Set the @value{GDBN} working directory to @var{directory}. > +Set the @value{GDBN} working directory to @var{directory}. If given no > +arguments, uses '~'. "~" is a file name, so please use @file{~} instead of quoting it. Also, I would replace the last sentence with If not given, @var{directory} defaults to @file{~}. OK with those changes. Thanks.