From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27337 invoked by alias); 22 May 2013 19:18:57 -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 27305 invoked by uid 89); 22 May 2013 19:18:52 -0000 X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.1 Received: from mtaout23.012.net.il (HELO mtaout23.012.net.il) (80.179.55.175) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 22 May 2013 19:18:50 +0000 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MN700H00S1WEO00@a-mtaout23.012.net.il> for gdb-patches@sourceware.org; Wed, 22 May 2013 22:18:39 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MN700HEOSB34YA0@a-mtaout23.012.net.il>; Wed, 22 May 2013 22:18:39 +0300 (IDT) Date: Wed, 22 May 2013 19:18:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH 5/7] PR gdb/15224 , Change the default set history filename to ~/.gdb_history. In-reply-to: <519D099F.7090101@redhat.com> To: Pedro Alves Cc: mbilal@codesourcery.com, gdb-patches@sourceware.org, jan.kratochvil@redhat.com Reply-to: Eli Zaretskii Message-id: <83a9nmu8l0.fsf@gnu.org> References: <51877A32.1030503@codesourcery.com> <51877A99.4060503@codesourcery.com> <51877B42.7@codesourcery.com> <51877BC6.6080007@codesourcery.com> <51877C76.2000509@codesourcery.com> <518A0BA8.9000703@codesourcery.com> <51936CAF.2090508@codesourcery.com> <51937A87.2030403@codesourcery.com> <83ehd85q79.fsf@gnu.org> <519CFF3D.4080001@redhat.com> <83bo82ucpv.fsf@gnu.org> <519D099F.7090101@redhat.com> X-SW-Source: 2013-05/txt/msg00855.txt.bz2 > Date: Wed, 22 May 2013 19:08:31 +0100 > From: Pedro Alves > CC: mbilal@codesourcery.com, gdb-patches@sourceware.org, > jan.kratochvil@redhat.com > > I understand the sentiment, but I'd rather not generalize, and look > at it on a case by case basis. Since my opinions are being voted down "on a case by case basis", that doesn't help me. I thought maybe generalizing will, because all these incompatibilities add up to a tendency that I think is dead wrong. > Scripts do have a means get the previous behavior. Simply adding > this to .gdbinit: But .gdbinit in the current directory is no longer read by default, so I can't, not without restoring the old behavior, which does involve using a command that will cause old GDB's to barf. > The reasoning for changing the default is that we (Pedro/Jan/Muhammad) > believe enabling history by default is a better default that having it > disabled by default, as currently. Another gratuitous incompatibility. > Couple the fact that ".gdb_history" > is a dot/hidden file, with enabling history saving by default, and users > could end up with their filesystem littered with random hidden .gdb_history > files. I think GDB shouldn't do that by default. So in order to enable > history saving by default, we believe we should default to ~/.gdb_history > instead first. bash also defaults to saving history under $HOME, and I'd > think most other interactive programs/shell do so too. So it feels like > GDB is the odd one out here. Being the odd one out is not a reason good enough to change behavior that was the default for a long time.