From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 120974 invoked by alias); 23 Jan 2020 17:21:24 -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 120965 invoked by uid 89); 23 Jan 2020 17:21:24 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-5.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=spawns X-HELO: simark.ca Received: from simark.ca (HELO simark.ca) (158.69.221.121) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 23 Jan 2020 17:21:23 +0000 Received: from [172.16.0.95] (192-222-181-218.qc.cable.ebox.net [192.222.181.218]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 466D41E5F7; Thu, 23 Jan 2020 12:21:21 -0500 (EST) Subject: Re: Discrepancy between Python and Guile wrt exiting the interpreter To: Pedro Alves , Eli Zaretskii , gdb-patches@sourceware.org References: <83a76l10r6.fsf@gnu.org> <9684975c-324f-b26b-de87-6d37c0d8d08a@redhat.com> From: Simon Marchi Message-ID: <081e7258-3fb8-6231-ca25-f2d18d255645@simark.ca> Date: Thu, 23 Jan 2020 17:37:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <9684975c-324f-b26b-de87-6d37c0d8d08a@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2020-01/txt/msg00737.txt.bz2 On 2020-01-23 12:10 p.m., Pedro Alves wrote: > Note that these commands are not direct equivalents. The guile equivalent > to "pi" which is short for "python" would be "guile", or "gu", and with > that command you get the same behavior as "pi", in the sense that ",q" > doesn't bail you out, you have to type some command and finish with > either Ctrl-D or Ctrl-C to abort. "pi" is not a shorthand for "python", it's a shorthand for "python-interactive", which spawns a Python interpreter prompt/repl. So I think that and "guile-repl" are quite similar. It's just that the Python repl doesn't provide a convenient way (other than ctrl-D) so say "exit the repl". Simon