From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#25025: python-shell-calculate-command is wrong Date: Fri, 2 Dec 2016 09:16:04 -0500 Message-ID: References: <83polk3qow.fsf@gnu.org> <83inra13r3.fsf@gnu.org> <8337ic29y0.fsf@gnu.org> <87r35wj4b8.fsf@users.sourceforge.net> <83zikkzytf.fsf@gnu.org> <8737i9iz28.fsf@users.sourceforge.net> <1949fc46-fd26-dddb-86b2-ab3478587271@gmail.com> <87wpflhgsf.fsf@users.sourceforge.net> <83a8chq7x6.fsf@gnu.org> <83d1hbpobp.fsf@gnu.org> <87h96ngmmq.fsf@users.sourceforge.net> <83k2biokad.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1480688239 20252 195.159.176.226 (2 Dec 2016 14:17:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 2 Dec 2016 14:17:19 +0000 (UTC) Cc: 25025@debbugs.gnu.org, =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 02 15:17:13 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCoeG-0003tM-M3 for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Dec 2016 15:17:12 +0100 Original-Received: from localhost ([::1]:34754 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCoeK-0003kC-Cv for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Dec 2016 09:17:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCoeA-0003jv-OW for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2016 09:17:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCoe6-0005F9-Su for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2016 09:17:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34235) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cCoe6-0005F5-P4 for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2016 09:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cCoe6-0006KU-Jz for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2016 09:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Dec 2016 14:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25025 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 25025-submit@debbugs.gnu.org id=B25025.148068817324263 (code B ref 25025); Fri, 02 Dec 2016 14:17:02 +0000 Original-Received: (at 25025) by debbugs.gnu.org; 2 Dec 2016 14:16:13 +0000 Original-Received: from localhost ([127.0.0.1]:49634 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCodI-0006JG-PY for submit@debbugs.gnu.org; Fri, 02 Dec 2016 09:16:12 -0500 Original-Received: from mail-oi0-f54.google.com ([209.85.218.54]:34113) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCodG-0006J3-HY for 25025@debbugs.gnu.org; Fri, 02 Dec 2016 09:16:10 -0500 Original-Received: by mail-oi0-f54.google.com with SMTP id y198so267478311oia.1 for <25025@debbugs.gnu.org>; Fri, 02 Dec 2016 06:16:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=5t4+ZNIDAptO8K+/YR0dkt9bgb3qeLGdbJoyf/3mjJQ=; b=Mwnar/9i88PtdKf33M3b37YkU4ee4uU9WIkKDyvPqzlE80RiL0OnNoq6dw7UP32m/j K7mPV5qPAngBWNZf3JeC6A3C4liFEgIal7B7HU0UUnxjOr5FmJgTawQt1V2ERwzpTxOr 5tm2U8RNMVybFTPob34pHLngJM7CtiqJ7AFR64xybVzv5fWsz8xZ2AREF9awpXnqE1Y9 UTtxN36dTD2zn0CyRUVXSjE5V08ncOsxa7Pog+vgSbH+2Edk6M/YLcMIPi7i7CdhvxbT TRbT1Ah+Uo1bXsowZBtPK5TGqKA13jOa/teldZiWY25pou5uszMeUxPMRg38mZ6dS85d UIWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=5t4+ZNIDAptO8K+/YR0dkt9bgb3qeLGdbJoyf/3mjJQ=; b=Gyz/ms2pDlZiRh/FzljZY6fT/D89hvUt5HGjqD3Z7whSfQT30Uwo0uG22oD4FfuONn hHScejaQetOk4phr8DHOuF3G+59YoTMti9JDwPCX1gxyx8qlAAT8tk0JPJHHA6aQBl/m HAZWeqXoRj8/eLOF0a0u9KRrEner07fYugfmlEmgbYcj2oMlKCXjmaXSVlW1woBr/kyL CJnQ8ah9CJsioOZYW6GudtNJGJjHj3U9BzQpoZ5gUcAfLtrcALx/d50TSDam8M6tE7o1 iwXTdVMfaa6VHERGgI0e8HfOYcsN7Pl1ldaeZxmYVx8Nug1GP/5kyt330ggpNmlsm2z3 55Nw== X-Gm-Message-State: AKaTC03emJXTFVJh6xRjr+VU7dwT9WLyv7eBjtjRKC4bkeh5+dMyjs0fCmfy6QUehsCTyCEAnKYPJ/fxY/mGMA== X-Received: by 10.202.244.214 with SMTP id s205mr21214914oih.70.1480688164834; Fri, 02 Dec 2016 06:16:04 -0800 (PST) Original-Received: by 10.157.6.234 with HTTP; Fri, 2 Dec 2016 06:16:04 -0800 (PST) In-Reply-To: <83k2biokad.fsf@gnu.org> X-Google-Sender-Auth: jJwJsDOkcKM6YrF-poVf25nY-9A X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:126411 Archived-At: On Fri, Dec 2, 2016 at 2:35 AM, Eli Zaretskii wrote: >> --- a/lisp/progmodes/python.el >> +++ b/lisp/progmodes/python.el >> @@ -2379,7 +2379,7 @@ python-shell-internal-get-process-name >> (defun python-shell-calculate-command () >> "Calculate the string used to execute the inferior Python process." >> (format "%s %s" >> - (shell-quote-argument python-shell-interpreter) >> + (combine-and-quote-strings (list python-shell-interpreter)) >> python-shell-interpreter-args)) > > Isn't combine-and-quote-strings wrong for quoting shell commands? > AFAIR, it doesn't DTRT with some special characters that can appear in > file names on Unix. Am I mistaken? It's not a shell command though, hence this bug. > > But if my fears are unjustified, sure, why not? Cl=C3=A9ment, WDYT?