From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#16005: inferior-lisp and filenames with spaces Date: Thu, 15 Jul 2021 10:25:19 +0300 Message-ID: <838s286nts.fsf@gnu.org> References: <5298F8AD.5020606@earthlink.net> <87zguop2du.fsf@gnus.org> <83czrk6p1r.fsf@gnu.org> <877dhsm4ra.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32213"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 16005@debbugs.gnu.org, sdlitvin@earthlink.net To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 15 09:28:54 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3vnh-00089U-JW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Jul 2021 09:28:53 +0200 Original-Received: from localhost ([::1]:40046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3vng-0004lz-Ls for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Jul 2021 03:28:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3vkw-0008Ns-KA for bug-gnu-emacs@gnu.org; Thu, 15 Jul 2021 03:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35084) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m3vkw-0002Rr-AT for bug-gnu-emacs@gnu.org; Thu, 15 Jul 2021 03:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m3vkw-0006ho-85 for bug-gnu-emacs@gnu.org; Thu, 15 Jul 2021 03:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Jul 2021 07:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16005 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 16005-submit@debbugs.gnu.org id=B16005.162633394625753 (code B ref 16005); Thu, 15 Jul 2021 07:26:02 +0000 Original-Received: (at 16005) by debbugs.gnu.org; 15 Jul 2021 07:25:46 +0000 Original-Received: from localhost ([127.0.0.1]:46630 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3vkg-0006hJ-AK for submit@debbugs.gnu.org; Thu, 15 Jul 2021 03:25:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3vkf-0006h5-42 for 16005@debbugs.gnu.org; Thu, 15 Jul 2021 03:25:45 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39334) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3vkY-00027r-Tp; Thu, 15 Jul 2021 03:25:39 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2791 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3vkU-0002I7-8W; Thu, 15 Jul 2021 03:25:37 -0400 In-Reply-To: <877dhsm4ra.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 15 Jul 2021 09:10:33 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:210007 Archived-At: > From: Lars Ingebrigtsen > Cc: sdlitvin@earthlink.net, 16005@debbugs.gnu.org > Date: Thu, 15 Jul 2021 09:10:33 +0200 > > Eli Zaretskii writes: > > >> (let ((cmdlist (split-string cmd))) > >> (set-buffer (apply (function make-comint) > >> "inferior-lisp" (car cmdlist) nil (cdr cmdlist))) > > [...] > > > If we prompt the users for a shell command, we should expect the users > > to quote it as they would when they type at the shell's prompt. is > > this prompt for the complete shell command, or is it only for the name > > of the program's executable file? If the latter, we should run the > > result through shell-quote-argument before using it; if the former, > > the user should do the quoting, and there's no bug in Emacs. > > It's the former. The problem is that there is no way for the user to > quote the command, since we do a `split-string' on what they typed in > before executing it. Then how about using split-string-and-unquote instead of split-string?