From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#25025: python-shell-calculate-command is wrong Date: Sun, 27 Nov 2016 11:06:03 -0500 Message-ID: <87r35wj4b8.fsf@users.sourceforge.net> References: <83polk3qow.fsf@gnu.org> <83inra13r3.fsf@gnu.org> <8337ic29y0.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 1480262779 30726 195.159.176.226 (27 Nov 2016 16:06:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 27 Nov 2016 16:06:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: 25025@debbugs.gnu.org, clement.pit@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 27 17:06:10 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 1cB1xx-0006VY-9k for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Nov 2016 17:06:09 +0100 Original-Received: from localhost ([::1]:54662 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cB1y0-0004zO-Pb for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Nov 2016 11:06:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cB1xt-0004zI-J4 for bug-gnu-emacs@gnu.org; Sun, 27 Nov 2016 11:06:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cB1xq-0000OV-EB for bug-gnu-emacs@gnu.org; Sun, 27 Nov 2016 11:06:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56566) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cB1xq-0000OJ-Aa for bug-gnu-emacs@gnu.org; Sun, 27 Nov 2016 11:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cB1xp-0001e6-Q7 for bug-gnu-emacs@gnu.org; Sun, 27 Nov 2016 11:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Nov 2016 16:06:01 +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.14802627156268 (code B ref 25025); Sun, 27 Nov 2016 16:06:01 +0000 Original-Received: (at 25025) by debbugs.gnu.org; 27 Nov 2016 16:05:15 +0000 Original-Received: from localhost ([127.0.0.1]:43732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cB1x4-0001d2-QO for submit@debbugs.gnu.org; Sun, 27 Nov 2016 11:05:14 -0500 Original-Received: from mail-io0-f181.google.com ([209.85.223.181]:33613) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cB1x3-0001cp-4D for 25025@debbugs.gnu.org; Sun, 27 Nov 2016 11:05:13 -0500 Original-Received: by mail-io0-f181.google.com with SMTP id j65so193622086iof.0 for <25025@debbugs.gnu.org>; Sun, 27 Nov 2016 08:05:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=+1UW51wA9MXo0vpgOXuhVz3YFBN9pCzA9aXuUh3xDBg=; b=Vlwd+54qPI5k92X66pwceig24BtHQcFcpIzwRFi2rrvSoG7HHI2CVKSvoghs6VfecN +CwZzzZ928xtE0sh5+VK5Hj+cEnOB/UxOpETQhaeBzl5hDfy2gGxWslWH5P3HGwMExwk CmBtNHjVJxHnH0vojAQUtEj+JoK06MzfUTp/46QbS4VmOc6RKTLywpRGJhZWbLGflwz6 yM3a4lcjASC3sanARVbS47fmybx9+H7CGOvCLKQeAMsHRvffzw3Ck0XExgfsyKH+cZad /uEtbHXsUAxCW5wdFPZxcVykevITBI0DhNlJsQhLTDH97QLam6iCBHY2FD4S8BGd7j0Q TvoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=+1UW51wA9MXo0vpgOXuhVz3YFBN9pCzA9aXuUh3xDBg=; b=Gf0cXRMmlxuAI8BhrhZzNbT2SBKo6kLWyW/oNdNKnQhsLAuqfO7YNDNo60RZfd7z2w K5yZl7YwgwcSNoNvmO2nxF0IPol3tvfUOIQZuPLOmQDUJUsslhQjxmaUvYpX3FOGW+QU ql7QDsKqWIB3WX/OXVAD0B745jjDQQXu9eWZfGgGqggg5gwxnuvxlVXRZx2uiDVlLo2u 7+A7jsAwKqs3CIBoDRcgPED2DCE98dnL1QcuwbSLLGuiA+9zyTox9c4V2cSvrlx0b6x8 srYjP2MnacKnt4hErCoQrH6BcA2EgUxeD0mCpFGZKq13C9acneQIJ+nyZx2EcMIfxkkB PIpw== X-Gm-Message-State: AKaTC01Wr4prUdMuKLIpnlFBBoCoq2UWjzIh1Ij7HBbIul21ZU8u+FqO70Tyq09wRJHeEQ== X-Received: by 10.107.20.82 with SMTP id 79mr14848447iou.158.1480262707551; Sun, 27 Nov 2016 08:05:07 -0800 (PST) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id p20sm8727608itc.2.2016.11.27.08.05.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 27 Nov 2016 08:05:06 -0800 (PST) In-Reply-To: <8337ic29y0.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 27 Nov 2016 17:56:23 +0200") 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:126168 Archived-At: Eli Zaretskii writes: >> From: Noam Postavsky >> Date: Sat, 26 Nov 2016 19:50:40 -0500 >> Cc: Cl=C3=A9ment Pit--Claudel ,=20 >> 25025@debbugs.gnu.org >>=20 >> >> I think the whole command should be quoted with >> >> combine-and-quote-strings to balance the call to >> >> split-string-and-unquote. >> > >> > Why not remove both of those calls? Do you understand why they are >> > needed in that case? >>=20 >> Well, CMD can also come from user input, so we would need some way for >> the user to specify a list of arguments. Currently that can work by >> entering a string that would be split by split-string-and-unquote. > > Why does it need to be split? A shell command can (even should) be > handed to the shell as a single string. Currently it's not a shell command, because a shell isn't being used. My other suggestion was to use a shell: >> It might be more intuitive to actually use a shell and then the user >> would enter a shell command (though inserting a shell into things >> might bring more complications).