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:45:05 +0300 Message-ID: <835yxc6mwu.fsf@gnu.org> References: <5298F8AD.5020606@earthlink.net> <87zguop2du.fsf@gnus.org> <83czrk6p1r.fsf@gnu.org> <877dhsm4ra.fsf@gnus.org> <838s286nts.fsf@gnu.org> <87y2a8kp9h.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34626"; 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:46:11 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 1m3w4R-0008oL-3D for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Jul 2021 09:46:11 +0200 Original-Received: from localhost ([::1]:45722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3w4P-0001P4-KW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Jul 2021 03:46:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3w4I-0001Ob-HT for bug-gnu-emacs@gnu.org; Thu, 15 Jul 2021 03:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35151) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m3w4I-00031u-8p for bug-gnu-emacs@gnu.org; Thu, 15 Jul 2021 03:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m3w4I-0007Fq-7k for bug-gnu-emacs@gnu.org; Thu, 15 Jul 2021 03:46: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:46: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.162633513527834 (code B ref 16005); Thu, 15 Jul 2021 07:46:02 +0000 Original-Received: (at 16005) by debbugs.gnu.org; 15 Jul 2021 07:45:35 +0000 Original-Received: from localhost ([127.0.0.1]:46696 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3w3r-0007Er-9O for submit@debbugs.gnu.org; Thu, 15 Jul 2021 03:45:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3w3p-0007Ed-Bm for 16005@debbugs.gnu.org; Thu, 15 Jul 2021 03:45:33 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39746) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3w3j-0002VY-QM; Thu, 15 Jul 2021 03:45:27 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4008 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 1m3w3b-0003e3-9P; Thu, 15 Jul 2021 03:45:27 -0400 In-Reply-To: <87y2a8kp9h.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 15 Jul 2021 09:30:34 +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:210011 Archived-At: > From: Lars Ingebrigtsen > Cc: sdlitvin@earthlink.net, 16005@debbugs.gnu.org > Date: Thu, 15 Jul 2021 09:30:34 +0200 > > Eli Zaretskii writes: > > > Then how about using split-string-and-unquote instead of split-string? > > That would be an improvement, certainly. It'd take care of > "\"foo bar\" zot". However, it doesn't do "foo\\ bar zot", and both are > equivalent in shells. Users will have to use quoting "like this". We can document that. It's a relatively rare use case, so I don't think the partial support for quoting is such a bad idea. > Which is why I wondered whether we had a function to split based on > shell(ish) syntax, which would be the optimal solution here... I think split-string-and-unquote is the only one that comes close. If someone wants to emulate the shells we support, patches are welcome (and then there will still be the problem to know the exact shell which is being targeted in each use case).