From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31571 invoked by alias); 5 Jul 2012 02:31:21 -0000 Received: (qmail 31562 invoked by uid 22791); 5 Jul 2012 02:31:20 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-pb0-f41.google.com (HELO mail-pb0-f41.google.com) (209.85.160.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 05 Jul 2012 02:31:07 +0000 Received: by pbbrp2 with SMTP id rp2so13454475pbb.0 for ; Wed, 04 Jul 2012 19:31:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.136.229 with SMTP id qd5mr24106072pbb.2.1341455467493; Wed, 04 Jul 2012 19:31:07 -0700 (PDT) Received: by 10.143.155.9 with HTTP; Wed, 4 Jul 2012 19:31:07 -0700 (PDT) Date: Thu, 05 Jul 2012 02:31:00 -0000 Message-ID: Subject: [PATCH] cd command defaults to ~ From: Nathaniel Flath To: 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/msg00068.txt.bz2 Hi, '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. Thanks, Nathaniel Flath diff -u -r1.131 cli-cmds.c --- cli/cli-cmds.c 13 Jun 2012 15:47:15 -0000 1.131 +++ cli/cli-cmds.c 5 Jul 2012 02:26:36 -0000 @@ -367,7 +367,7 @@ dont_repeat (); if (dir == 0) - error_no_arg (_("new working directory")); + dir = "~"; dir = tilde_expand (dir); make_cleanup (xfree, dir);