From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#71935: split-string-and-unquote mishandles dired-listing-switches with ' Date: Thu, 04 Jul 2024 09:51:10 +0300 Organization: LINKOV.NET Message-ID: <86tth5tztt.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11059"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) To: 71935@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 04 09:02:28 2024 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 1sPGU7-0002gh-LL for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Jul 2024 09:02:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPGTi-00021N-ES; Thu, 04 Jul 2024 03:02:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sPGTg-0001xs-5h for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2024 03:02:00 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPGTf-0001VU-Sv for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2024 03:01:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sPGTh-0004Xu-T8 for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2024 03:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Jul 2024 07:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71935 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.172007649817421 (code B ref -1); Thu, 04 Jul 2024 07:02:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Jul 2024 07:01:38 +0000 Original-Received: from localhost ([127.0.0.1]:41337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPGTK-0004Wq-4m for submit@debbugs.gnu.org; Thu, 04 Jul 2024 03:01:38 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:48456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPGTI-0004Wd-99 for submit@debbugs.gnu.org; Thu, 04 Jul 2024 03:01:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sPGTD-0001Aa-2w for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2024 03:01:32 -0400 Original-Received: from relay2-d.mail.gandi.net ([2001:4b98:dc4:8::222]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sPGTA-0001RE-3x for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2024 03:01:30 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id AE9E940004 for ; Thu, 4 Jul 2024 07:01:24 +0000 (UTC) X-GND-Sasl: juri@linkov.net Received-SPF: pass client-ip=2001:4b98:dc4:8::222; envelope-from=juri@linkov.net; helo=relay2-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:288353 Archived-At: 0. emacs -Q 1. (setopt dired-listing-switches "-al --block-size='1") 2. C-x d /tmp/* /tmp: wildcard * /bin/bash: -c: line 0: unexpected EOF while looking for matching `'' /bin/bash: -c: line 1: syntax error: unexpected end of file 3. (setopt dired-listing-switches "-al --block-size=\\'1") 4. C-x d /tmp/ Debugger entered--Lisp error: (error "Listing directory failed but ‘access-file’ worked") error("Listing directory failed but `access-file' worked") insert-directory("/tmp/" "--dired -N -al --block-size=\\'1" nil t) dired-insert-directory("/tmp/" "-al --block-size=\\'1" nil nil t) dired-readin-insert() dired-readin() dired-internal-noselect("/tmp/" nil) dired-noselect("/tmp/" nil) dired("/tmp/" nil) funcall-interactively(dired "/tmp/" nil) command-execute(dired) because 'split-string-and-unquote' in 'insert-directory' doesn't turn "--block-size=\\'1" into "--block-size='1". 5. (setopt dired-listing-switches "-al --block-size=\"'1\"") 6. C-x d /tmp/ Same error for another reason, because 'split-string-and-unquote' splits "--block-size=\"'1\"" to '("--block-size=" "'1").