From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31363 invoked by alias); 25 Jul 2012 17:43:18 -0000 Received: (qmail 31341 invoked by uid 22791); 25 Jul 2012 17:43:16 -0000 X-SWARE-Spam-Status: No, hits=-6.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 25 Jul 2012 17:43:03 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6PHh27p028314 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 25 Jul 2012 13:43:02 -0400 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q6PHh14J007673 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 25 Jul 2012 13:43:01 -0400 From: Tom Tromey To: Khoo Yit Phang Cc: Phil Muldoon , gdb-patches@sourceware.org Subject: Re: [PATCH 1/4]: Make "python" start a standard Python prompt References: <770F6E2B-70F5-4DF9-8E01-BD4F5FDC7AB1@cs.umd.edu> <500F95FB.5060904@redhat.com> <87zk6nizl6.fsf@fleche.redhat.com> <1C2FC4AD-E6FE-4857-9DE5-FDE5BE006E95@cs.umd.edu> Date: Wed, 25 Jul 2012 17:43:00 -0000 In-Reply-To: <1C2FC4AD-E6FE-4857-9DE5-FDE5BE006E95@cs.umd.edu> (Khoo Yit Phang's message of "Wed, 25 Jul 2012 12:58:12 -0400") Message-ID: <874novivob.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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/msg00559.txt.bz2 >>>>> "Yit" == Khoo Yit Phang writes: Yit> My original patch back in January tried to preserve the behavior of Yit> "python" based "from_tty": if it was true, "python" would be Yit> interactive; otherwise, it would not. But there were several Yit> objections to that, I guess since "from_tty" is hard to track (see Yit> http://thread.gmane.org/gmane.comp.gdb.patches/71971). The current Yit> implementation is based on the discussion then. I vaguely remember it. I have a suspicion that I've changed my mind since the old thread, but I didn't go back and read to see :) I don't know what would make from_tty hard to track, but ok. I just think it is very likely that "python" commands are in .gdbinits and other places, and that breaking these would be bad. Yit> One more option is to move the Python REPL to "python-repl" and alias Yit> it to "py", and leave the old "python" as is. The "py" alias gives a Yit> convenient short command, "python-repl" can be used from a script to Yit> start a REPL, and the old "python" remains as is. Like Matt says, "py" is probably already in use (I feel certain I've seen it) and if anything we should do the converse -- alias "py" to "python" if a new command goes in. "python-repl" would be fine by me. Tom