From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10033 invoked by alias); 25 Jul 2012 17:20:20 -0000 Received: (qmail 10014 invoked by uid 22791); 25 Jul 2012 17:20:18 -0000 X-SWARE-Spam-Status: No, hits=-5.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-qc0-f182.google.com (HELO mail-qc0-f182.google.com) (209.85.216.182) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 25 Jul 2012 17:20:05 +0000 Received: by qcsg15 with SMTP id g15so779605qcs.13 for ; Wed, 25 Jul 2012 10:20:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.185.148 with SMTP id co20mr39822973qab.4.1343236804193; Wed, 25 Jul 2012 10:20:04 -0700 (PDT) Received: by 10.229.42.73 with HTTP; Wed, 25 Jul 2012 10:20:04 -0700 (PDT) In-Reply-To: <1C2FC4AD-E6FE-4857-9DE5-FDE5BE006E95@cs.umd.edu> 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:20:00 -0000 Message-ID: Subject: Re: [PATCH 1/4]: Make "python" start a standard Python prompt From: Matt Rice To: Khoo Yit Phang Cc: Tom Tromey , Phil Muldoon , gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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/msg00553.txt.bz2 On Wed, Jul 25, 2012 at 9:58 AM, Khoo Yit Phang wrote: > One more option is to move the Python REPL to "python-repl" and alias it = to "py", and leave the old "python" as is. The "py" alias gives a convenien= t short command, "python-repl" can be used from a script to start a REPL, a= nd the old "python" remains as is. > FWIW i have used the 'py' alias in scripts numerous times (though afaict the ones i've released into the wild have been switched to 'python' before release), though I believe there to be a few examples of it on stack overflow (kind of hard to search for though).