From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 28 12:44:38 2014 Received: (at submit) by debbugs.gnu.org; 28 Oct 2014 16:44:38 +0000 Received: from localhost ([127.0.0.1]:37941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xj9sq-0000vQ-He for submit@debbugs.gnu.org; Tue, 28 Oct 2014 12:44:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:32804) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xj9sn-0000vC-SW for submit@debbugs.gnu.org; Tue, 28 Oct 2014 12:44:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xj9sc-0002CG-LU for submit@debbugs.gnu.org; Tue, 28 Oct 2014 12:44:28 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=AC_HTML_NONSENSE_TAGS, BAYES_50, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xj9sc-0002C6-Iy for submit@debbugs.gnu.org; Tue, 28 Oct 2014 12:44:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34485) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xj9sW-0001Rx-SH for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2014 12:44:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xj9sQ-0002Ab-OG for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2014 12:44:16 -0400 Received: from cobb.liquidweb.com ([50.28.13.150]:39373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xj9sQ-0002AJ-Fe for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2014 12:44:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com; s=default; h=Content-Type:MIME-Version:Subject:To:From:Message-ID:Date; bh=ado2puyEuN7t98hGiWLdGhwjhg1MQd3Mo+h5t8P+mTE=; b=oA3GEmCYNc0VWUjVtc9nDZo4wK8bAzw4FlHftC5GvttDKyD8iQ9b+6QQYZOjdxnZw0xW/65D3/wRxzbUgYScqUk7OXXkr2Kxrhn6Du4BaRuIyci9lp495LMpFkHba5pl; Received: from cpe-104-173-54-60.socal.res.rr.com ([104.173.54.60]:49281 helo=MP.local) by cobb.liquidweb.com with esmtp (Exim 4.82) (envelope-from ) id 1Xj9sN-0004h4-W7 for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2014 12:44:08 -0400 Date: Tue, 28 Oct 2014 09:44:07 -0700 Message-ID: From: Keith David Bershatsky To: bug-gnu-emacs@gnu.org Subject: 25.0.50; Dired -- add support for ls --time-style with a space User-Agent: / () / () APEL/10.8 Emacs/25.0.50 (x86_64-apple-darwin10.8.0) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by - "") Content-Type: text/plain; charset=US-ASCII X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobb.liquidweb.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-Get-Message-Sender-Via: cobb.liquidweb.com: acl_c_relayhosts_text_entry: lawlist|lawlist.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) The ls version that I use is coreutils-8.21 for OSX. I would like to be able to use a custom time-style format in dired-mode, such that there is a space between the date and the time: --time-style=+%m-%d-%Y %H:%M:%S Without modifying the source code, I have not found a viable method to set the `dired-listing-switches`. In my quest to track down the root cause, I discovered that `indirect-directory` within `files.el` supports both a list and a string format for the `switches`. However, `dired-indirect-directory` and other functions in dired-mode only support a string. Therefore, I have two suggestions. 1. Tweak the applicable functions to permit a space within the time-style when `switches` is a string format. 2. Modify the applicable functions in dired-mode to permit support for a list form of `switches`, instead of only a string. `indirect-files` already contains methods for dealing with detecting whether a string or a list is used, and different actions are taken based thereon. So, copying some of the functionality from `indirect-files` may be the easiest method to add list support for `switches` in dired-mode. Here is the related thread that I opened on the beta version of Emacs stackexchange: http://emacs.stackexchange.com/q/2722/2287 Thanks, Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; In GNU Emacs 25.0.50.1 (x86_64-apple-darwin10.8.0, NS appkit-1038.36 Version 10.6.8 (Build 10K549)) of 2014-10-01 on MP.local Repository revision: 117996 dmantipov@yandex.ru-20141001132108-zdsxru2390mqyjlu Windowing system distributor `Apple', version 10.3.1038 Configured using: `configure --with-ns' Configured features: ACL LIBXML2 ZLIB Important settings: locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: sd-mode: t sb-mode: t tb-mode: t shell-dirtrack-mode: t cm-mode: t bc-mode: t ds-mode: t ml-mode: t Recent input: x e m a c s - b u g - r e p o r t r e p o r t - e m a c s - b u g Recent messages: Loading /Users/HOME/.0.data/.0.emacs/init.el (source)... Loading /Users/HOME/.0.data/.0.emacs/lawlist-test.el (source)...done Loading /Users/HOME/.0.data/.0.emacs/init.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Wrote /Users/HOME/.0.data/.0.emacs/.lock *beep* Load-path shadows: /Users/HOME/.0.data/.0.emacs/.0.apel_flim_simi/md4 hides /Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents/Resources/lisp/md4 /Users/HOME/.0.data/.0.emacs/.0.apel_flim_simi/hex-util hides /Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents/Resources/lisp/hex-util /Users/HOME/.0.data/.0.emacs/.0.apel_flim_simi/sasl hides /Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents/Resources/lisp/net/sasl /Users/HOME/.0.data/.0.emacs/.0.apel_flim_simi/sasl-ntlm hides /Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents/Resources/lisp/net/sasl-ntlm /Users/HOME/.0.data/.0.emacs/.0.apel_flim_simi/sasl-digest hides /Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents/Resources/lisp/net/sasl-digest /Users/HOME/.0.data/.0.emacs/.0.apel_flim_simi/sasl-cram hides /Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents/Resources/lisp/net/sasl-cram /Users/HOME/.0.data/.0.emacs/.0.apel_flim_simi/ntlm hides /Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents/Resources/lisp/net/ntlm /Users/HOME/.0.data/.0.emacs/.0.apel_flim_simi/hmac-md5 hides /Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents/Resources/lisp/net/hmac-md5 /Users/HOME/.0.data/.0.emacs/.0.apel_flim_simi/hmac-def hides /Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents/Resources/lisp/net/hmac-def /Users/HOME/.0.data/.0.emacs/.0.wl/rfc2368 hides /Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents/Resources/lisp/mail/rfc2368 /Users/HOME/.0.data/.0.emacs/.0.wl/utf7 hides /Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents/Resources/lisp/gnus/utf7 /Users/HOME/.0.data/.0.emacs/.0.apel_flim_simi/smime hides /Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents/Resources/lisp/gnus/smime /Users/HOME/.0.data/.0.emacs/.0.apel_flim_simi/pgg hides /Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents/Resources/lisp/obsolete/pgg /Users/HOME/.0.data/.0.emacs/.0.apel_flim_simi/pgg-pgp5 hides /Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents/Resources/lisp/obsolete/pgg-pgp5 /Users/HOME/.0.data/.0.emacs/.0.apel_flim_simi/pgg-pgp hides /Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents/Resources/lisp/obsolete/pgg-pgp /Users/HOME/.0.data/.0.emacs/.0.apel_flim_simi/pgg-parse hides /Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents/Resources/lisp/obsolete/pgg-parse /Users/HOME/.0.data/.0.emacs/.0.apel_flim_simi/pgg-gpg hides /Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents/Resources/lisp/obsolete/pgg-gpg /Users/HOME/.0.data/.0.emacs/.0.apel_flim_simi/pgg-def hides /Users/HOME/.0.data/.0.emacs/Emacs_10_01_2014.app/Contents/Resources/lisp/obsolete/pgg-def Features: (shadow mime-setup mail-mime-setup semi-setup mime-image modb-standard elmo-imap4 emacsbug lawlist-desktop frameset lawlist-colors reporter lawlist-dv lawlist-mc rect lawlist-ztree lawlist-wl elmo-nntp wl-demo wl-news wl-address wl-thread wl wl-e21 wl-draft elmo-pop3 wl-template elmo-net elmo-cache elmo-map elmo-dop wl-folder wl-spam wl-action wl-summary wl-refile wl-message wl-mime pgg mime-pgp wl-util pp elmo-flag elmo-localdir mime-play filename mime-edit eword-encode pgg-parse pccl pccl-20 pgg-def signature sendmail elmo-mime mmelmo-buffer mmelmo-imap mime-view mime-conf calist semi-def mmimap mime-parse mmbuffer mmgeneric elmo-filter elmo-multi elmo-spam elsp-header elsp-generic elmo elmo-signal wl-highlight wl-vars wl-version elmo-msgdb modb modb-generic modb-entity luna mime elmo-util emu invisible inv-23 poem poem-e20 poem-e20_3 eword-decode std11 elmo-date elmo-vars elmo-version w3m-load mime-w3m w3m browse-url doc-view jka-compr image-mode w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util lawlist-dired dired-aux lawlist-vr-hr lawlist-ws disp-table lawlist-calc lawlist-flyspell lawlist-yas lawlist-tex-mode skeleton compare-w lawlist-txt-mode lawlist-tabbar lawlist-github ido view vc-git vc vc-dispatcher tramp tramp-compat tramp-loaddefs trampver shell thingatpt time-stamp rx log-view log-edit pcvs-util add-log help-mode grep compile find-lisp epa epg epg-config ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff ert ewoc debug eieio-base diff-mode conf-mode autorevert filenotify lorg-calendar org-element lorg-search org-agenda context-menu dired-read-filename lawlist-toodledo url-http url-auth url-gw url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source eieio eieio-core password-cache url-vars mailcap json xml lawlist-org lawlist-calendar derived org byte-opt bytecomp byte-compile cconv org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint comint ansi-color ring ob-core ob-eval org-compat org-macs org-loaddefs cal-menu calendar cal-loaddefs noutline outline gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls utf7 mel path-util mime-def alist mcharset mcs-20 mcs-e20 pcustom pces pces-e20 pces-20 broken poe pym static apel-ver product netrc nnoo parse-time gnus-spec gnus-int gnus-range message dired format-spec mml mml-sec mm-decode mm-bodies mm-encode gmm-utils mailheader gnus-win lawlist-frame lawlist-cm lawlist-bbdb gnus gnus-ems nnheader gnus-util mail-utils wid-edit mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-extr rfc822 cl timezone lawlist-init pcase cl-macs gv advice help-fns easy-mmode edmacro kmacro cl-loaddefs cl-lib savehist server ps-print ps-def lpr find-func saveplace easymenu time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process cocoa ns multi-tty emacs) Memory information: ((conses 16 1090108 58372) (symbols 48 62238 0) (miscs 40 103 175) (strings 32 146233 23368) (string-bytes 1 4634883) (vectors 16 42102) (vector-slots 8 754914 17245) (floats 8 1104 24) (intervals 56 4308 0) (buffers 976 11)) From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 28 13:04:33 2014 Received: (at 18875) by debbugs.gnu.org; 28 Oct 2014 17:04:33 +0000 Received: from localhost ([127.0.0.1]:37955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XjAC8-0001QS-Pc for submit@debbugs.gnu.org; Tue, 28 Oct 2014 13:04:33 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]:56787) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XjAC5-0001Q9-S5 for 18875@debbugs.gnu.org; Tue, 28 Oct 2014 13:04:31 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NE500H00ZD94W00@a-mtaout21.012.net.il> for 18875@debbugs.gnu.org; Tue, 28 Oct 2014 19:04:22 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NE500H4IZFA2970@a-mtaout21.012.net.il>; Tue, 28 Oct 2014 19:04:22 +0200 (IST) Date: Tue, 28 Oct 2014 19:04:15 +0200 From: Eli Zaretskii Subject: Re: bug#18875: 25.0.50; Dired -- add support for ls --time-style with a space In-reply-to: X-012-Sender: halo1@inter.net.il To: Keith David Bershatsky Message-id: <83a94g2kj4.fsf@gnu.org> References: X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 18875 Cc: 18875@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Tue, 28 Oct 2014 09:44:07 -0700 > From: Keith David Bershatsky > > The ls version that I use is coreutils-8.21 for OSX. I would like to be able to use a custom time-style format in dired-mode, such that there is a space between the date and the time: > > --time-style=+%m-%d-%Y %H:%M:%S > > Without modifying the source code, I have not found a viable method to set the `dired-listing-switches`. Doesn't "C-u C-x d" do what you want? From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 28 13:10:21 2014 Received: (at 18875) by debbugs.gnu.org; 28 Oct 2014 17:10:21 +0000 Received: from localhost ([127.0.0.1]:37971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XjAHl-0001a4-9V for submit@debbugs.gnu.org; Tue, 28 Oct 2014 13:10:21 -0400 Received: from cobb.liquidweb.com ([50.28.13.150]:40959) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XjAHj-0001Zr-78 for 18875@debbugs.gnu.org; Tue, 28 Oct 2014 13:10:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com; s=default; h=Content-Type:MIME-Version:Cc:Subject:To:From:Message-ID:Date; bh=n0TnErdfLUPMvtiYV5WYxk4DRt7mO8f8GXsl3hy9E6o=; b=p31lWkAfNKTKXRJITvbW1cKbEmFouAAAsWM+sVdexCi0vxQxJcP5txqVieQBU8rCAXXmbtaR5L8zyig30hG8LI2r5/5MJrUzquOZ2UL0GHntL55u/+zP6O0MmfuOkHct; Received: from cpe-104-173-54-60.socal.res.rr.com ([104.173.54.60]:49588 helo=MP.local) by cobb.liquidweb.com with esmtp (Exim 4.82) (envelope-from ) id 1XjAHc-0007kL-BR; Tue, 28 Oct 2014 13:10:12 -0400 Date: Tue, 28 Oct 2014 10:10:12 -0700 Message-ID: From: Keith David Bershatsky To: Eli Zaretskii Subject: Re: bug#18875: 25.0.50; Dired -- add support for ls --time-style with a space User-Agent: / () / () APEL/10.8 Emacs/25.0.50 (x86_64-apple-darwin10.8.0) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by - "") Content-Type: text/plain; charset=US-ASCII X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobb.liquidweb.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-Get-Message-Sender-Via: cobb.liquidweb.com: acl_c_relayhosts_text_entry: lawlist|lawlist.com X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18875 Cc: 18875@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Thank you, Eli, for taking a look at this report (#18875). `hour:minute:seconds` is omitted because there is a space between the date and the time. C-u C-x d -alh --group-directories-first --time-style=+%m-%d-%Y %H:%M:%S Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; At Tue, 28 Oct 2014 19:04:15 +0200, Eli Zaretskii wrote: > > > Date: Tue, 28 Oct 2014 09:44:07 -0700 > > From: Keith David Bershatsky > > > > The ls version that I use is coreutils-8.21 for OSX. I would like to be able to use a custom time-style format in dired-mode, such that there is a space between the date and the time: > > > > --time-style=+%m-%d-%Y %H:%M:%S > > > > Without modifying the source code, I have not found a viable method to set the `dired-listing-switches`. > > Doesn't "C-u C-x d" do what you want? From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 28 13:33:32 2014 Received: (at 18875) by debbugs.gnu.org; 28 Oct 2014 17:33:33 +0000 Received: from localhost ([127.0.0.1]:37995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XjAeC-0002AS-Gy for submit@debbugs.gnu.org; Tue, 28 Oct 2014 13:33:32 -0400 Received: from cobb.liquidweb.com ([50.28.13.150]:41734) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XjAeA-0002AD-7G for 18875@debbugs.gnu.org; Tue, 28 Oct 2014 13:33:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com; s=default; h=Content-Type:MIME-Version:Cc:Subject:To:From:Message-ID:Date; bh=FJdja9Ngz+8CRPfkfKn1+jwj2UMAejoczRE+yAiVm4E=; b=ZSnpffH/k3dwDNvel5+iQbLxwsownVTisf9CPOQ6HNRfxDYeCiwVhg0Xw4pzWb45blXh4qcCL2ZAadOm/QYq14ITxcCnk79+i2psdOoPLuJ+GUxzEq0E2RldlVMlc3/O; Received: from cpe-104-173-54-60.socal.res.rr.com ([104.173.54.60]:49703 helo=MP.local) by cobb.liquidweb.com with esmtp (Exim 4.82) (envelope-from ) id 1XjAe3-0001pR-3g; Tue, 28 Oct 2014 13:33:23 -0400 Date: Tue, 28 Oct 2014 10:33:23 -0700 Message-ID: From: Keith David Bershatsky To: Eli Zaretskii Subject: Re: bug#18875: 25.0.50; Dired -- add support for ls --time-style with a space User-Agent: / () / () APEL/10.8 Emacs/25.0.50 (x86_64-apple-darwin10.8.0) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by - "") Content-Type: text/plain; charset=US-ASCII X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobb.liquidweb.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-Get-Message-Sender-Via: cobb.liquidweb.com: acl_c_relayhosts_text_entry: lawlist|lawlist.com X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18875 Cc: 18875@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Here is an example that works when switches in a list format using `insert-directory` from files.el: (insert-directory "/" '("--dired" "-alth" "--time-style=+%m-%d-%Y %H:%M:%S") nil t) From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 19 10:15:37 2021 Received: (at 18875) by debbugs.gnu.org; 19 Aug 2021 14:15:37 +0000 Received: from localhost ([127.0.0.1]:60494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGipV-0005yn-F2 for submit@debbugs.gnu.org; Thu, 19 Aug 2021 10:15:37 -0400 Received: from quimby.gnus.org ([95.216.78.240]:49936) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGipS-0005yZ-UC for 18875@debbugs.gnu.org; Thu, 19 Aug 2021 10:15:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=tKjtOZae+3rw/yilYMimTnviKvA+vZ2IBFwwy5YOLC8=; b=uk+4leb3m8xVQNxd0ZHj00TDxO qmYOIrmUm0bi4G6p4qt/MdG/WCFDGS81OG7y4eSH8axaxIQfNpVOkmJtH5272RyzrWUXOa1dC4cGP WXb0VjSGvZ6ejeH++kMzo5L75eVBemMJ44N8YPW9ofJjz3f0U1Bx+s+Grg1vtGYlWt2E=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mGipH-0006rL-64; Thu, 19 Aug 2021 16:15:27 +0200 From: Lars Ingebrigtsen To: Keith David Bershatsky Subject: Re: bug#18875: 25.0.50; Dired -- add support for ls --time-style with a space References: Date: Thu, 19 Aug 2021 16:15:22 +0200 In-Reply-To: (Keith David Bershatsky's message of "Tue, 28 Oct 2014 10:10:12 -0700") Message-ID: <877dgh7c79.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Keith David Bershatsky writes: > Thank you, Eli, for taking a look at this report (#18875). > > `hour:minute:seconds` is omitted because there is a space between the > date and the time. > > C-u C-x d > > -alh --group-directories-f [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 18875 Cc: Eli Zaretskii , 18875@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Keith David Bershatsky writes: > Thank you, Eli, for taking a look at this report (#18875). > > `hour:minute:seconds` is omitted because there is a space between the > date and the time. > > C-u C-x d > > -alh --group-directories-first --time-style=+%m-%d-%Y %H:%M:%S (I'm going through old bug reports that unfortunately weren't resolved at the time.) These are things that has to be understandable to the shell, so you have to quote things appropriately for the shell. So I'd expect this to work: C-u C-x d -alh --group-directories-first --time-style="+%m-%d-%Y %H:%M:%S" But it doesn't; (insert-directory "/tmp/" "-alh --time-style=\"+%m-%d-%Y %H:%M:%S\"") fails. (split-string-and-unquote "-alh --time-style=\"+%m-%d-%Y %H:%M:%S\"") => ("-alh" "--time-style=" "+%m-%d-%Y %H:%M:%S") However, this works: (insert-directory "/tmp/" "-alh \"--time-style=+%m-%d-%Y %H:%M:%S\"") So... dired supports spaces in command line arguments, but you have to quote the argument, so I'm closing this bug report. However, there's a bug in `split-string-and-unquote', so I'm opening a new report for that. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 19 10:15:40 2021 Received: (at control) by debbugs.gnu.org; 19 Aug 2021 14:15:40 +0000 Received: from localhost ([127.0.0.1]:60497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGipY-0005z4-MS for submit@debbugs.gnu.org; Thu, 19 Aug 2021 10:15:40 -0400 Received: from quimby.gnus.org ([95.216.78.240]:49952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGipX-0005ye-I3 for control@debbugs.gnu.org; Thu, 19 Aug 2021 10:15:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=fVCoOgNcdViH10CwbuG9VbWdoeXeP2Ec2dKVY/EFIlE=; b=vDIqvR1mXaan9WhrKUkOhriMoB JBw65i/XpkiYXNzrAENEVd18uEP9yPReVlTtXdDra676wITKHrAhMdXtLQHy8cJvqC/0D4wfTMQ7x aFYsDqFdwmKWa75xVN0BsGsbbAM/md2XzjgFhnyVs2Ov/lY7Ei8Uy28I/EfRIShnJdns=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mGipP-0006rU-Kv for control@debbugs.gnu.org; Thu, 19 Aug 2021 16:15:33 +0200 Date: Thu, 19 Aug 2021 16:15:31 +0200 Message-Id: <875yw17c70.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #18875 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 18875 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 18875 quit From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 19 10:21:34 2021 Received: (at 18875) by debbugs.gnu.org; 19 Aug 2021 14:21:34 +0000 Received: from localhost ([127.0.0.1]:60504 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGivG-00068J-9x for submit@debbugs.gnu.org; Thu, 19 Aug 2021 10:21:34 -0400 Received: from quimby.gnus.org ([95.216.78.240]:50002) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGivE-000686-Jp for 18875@debbugs.gnu.org; Thu, 19 Aug 2021 10:21:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=odgd8R++dpEHVeV7IohicZFjEKzNORHmRAqrcibirlI=; b=UTgbmCPSfS1iYZALoR2K1ECLpZ nZ0sVM/HrVxPU7oQXck9gczhLem6ilW56RuSVb/Ag2+BjvWHUBgZG/cVAHEWjk7Dx3Ge9dWRey6Yp oQwcra+IDGkhVV0Blmx/L2ScSa4gXnFgcIkbYY3sN0KXzjowu1TWic4eKLolHhQS8G88=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mGiv2-0006vp-L6; Thu, 19 Aug 2021 16:21:25 +0200 From: Lars Ingebrigtsen To: Keith David Bershatsky Subject: Re: bug#18875: 25.0.50; Dired -- add support for ls --time-style with a space References: <877dgh7c79.fsf@gnus.org> Date: Thu, 19 Aug 2021 16:21:17 +0200 In-Reply-To: <877dgh7c79.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 19 Aug 2021 16:15:22 +0200") Message-ID: <87wnoh5xcy.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > So... dired supports spaces in command line arguments, but you have to > quote the argument, so I'm closing this bug report. However, there's a > bug in `split-string-and-unquote', so I'm opening a [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 18875 Cc: Eli Zaretskii , 18875@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > So... dired supports spaces in command line arguments, but you have to > quote the argument, so I'm closing this bug report. However, there's a > bug in `split-string-and-unquote', so I'm opening a new report for that. Or... the problem isn't in that function -- it works as designed, and parses a Lisp-style string correctly. `insert-directory' should be using `split-string-shell-command' instead, and I've now done that in Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 22 04:39:24 2021 Received: (at 18875) by debbugs.gnu.org; 22 Aug 2021 08:39:25 +0000 Received: from localhost ([127.0.0.1]:38154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHj0m-0000P2-Nk for submit@debbugs.gnu.org; Sun, 22 Aug 2021 04:39:24 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:41103) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHj0k-0000Oo-72 for 18875@debbugs.gnu.org; Sun, 22 Aug 2021 04:39:23 -0400 Received: (Authenticated sender: juri@linkov.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 3B1961C0002; Sun, 22 Aug 2021 08:39:14 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#18875: 25.0.50; Dired -- add support for ls --time-style with a space References: <877dgh7c79.fsf@gnus.org> <87wnoh5xcy.fsf@gnus.org> Date: Sun, 22 Aug 2021 11:32:07 +0300 In-Reply-To: <87wnoh5xcy.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 19 Aug 2021 16:21:17 +0200") Message-ID: <87mtpahtw8.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18875 Cc: 18875@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> So... dired supports spaces in command line arguments, but you have to >> quote the argument, so I'm closing this bug report. However, there's a >> bug in `split-string-and-unquote', so I'm opening a new report for that. > > Or... the problem isn't in that function -- it works as designed, and > parses a Lisp-style string correctly. > > `insert-directory' should be using `split-string-shell-command' instead, > and I've now done that in Emacs 28. The commit 04f723dec944eaa7b5e99373840a8bf920ba5fdd broke my config with the error signaled by insert-directory: (error "Listing directory failed but ‘access-file’ worked") When dired-listing-switches is customized to "-Alv --block-size='1" split-string-and-unquote parses switches correctly: ("--dired" "-Alv" ""--block-size='1" "-t") But split-string-shell-command does a wrong thing: ("--dired" "-Alv"" "--block-size=1 -t") and ls fails: /bin/ls: invalid suffix in --block-size argument '1 -t' From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 22 11:00:27 2021 Received: (at 18875) by debbugs.gnu.org; 22 Aug 2021 15:00:27 +0000 Received: from localhost ([127.0.0.1]:39707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHoxX-0006Q2-Fy for submit@debbugs.gnu.org; Sun, 22 Aug 2021 11:00:27 -0400 Received: from quimby.gnus.org ([95.216.78.240]:34684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHoxV-0006IC-3E for 18875@debbugs.gnu.org; Sun, 22 Aug 2021 11:00:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=NPYiT2sIUJNj58mFgLFRyK5wuVaSBexi+QLcNPgWj6k=; b=PAnuc8AR1qpwH6csrSoWJSTV0Y avQUtLgm7aZeHHUMGK1q5u79V+/h6VahYzfTiicxPAQx2D/1gnnIeP79mi+cW2fWw3IPdfBIPGt73 QmOk7CEJx2V/sxXz8K7eyqveyvP5ca45Si6CourvT/PiNU4aL5M0StEhsw94nzM69zBo=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mHoxK-00080S-9v; Sun, 22 Aug 2021 17:00:18 +0200 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#18875: 25.0.50; Dired -- add support for ls --time-style with a space References: <877dgh7c79.fsf@gnus.org> <87wnoh5xcy.fsf@gnus.org> <87mtpahtw8.fsf@mail.linkov.net> Date: Sun, 22 Aug 2021 17:00:13 +0200 In-Reply-To: <87mtpahtw8.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 22 Aug 2021 11:32:07 +0300") Message-ID: <87tujhy16q.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > The commit 04f723dec944eaa7b5e99373840a8bf920ba5fdd > broke my config with the error signaled by insert-directory: > (error "Listing directory failed but ‘access-file’ worked") > > When dired-li [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 18875 Cc: 18875@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Juri Linkov writes: > The commit 04f723dec944eaa7b5e99373840a8bf920ba5fdd > broke my config with the error signaled by insert-directory: > (error "Listing directory failed but =E2=80=98access-file=E2=80=99 worked= ") > > When dired-listing-switches is customized to > "-Alv --block-size=3D'1" Hm, well, that's not a valid shell string, is it? It should be "-Alv --block-size=3D\"'1\"" or something like that to be valid... Hm... Oh! The doc string actually documents this (that it's not using shell quoting). --- Options that include embedded whitespace must be quoted like this: "--option=3Dvalue with spaces"; you can use =E2=80=98combine-and-quote-strings=E2=80=99 to produce the correct quoting = of each option. --- So this was the original answer to this bug report. I'll revert the change. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 23 03:38:04 2021 Received: (at 18875) by debbugs.gnu.org; 23 Aug 2021 07:38:04 +0000 Received: from localhost ([127.0.0.1]:40437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mI4Wx-0003TX-SZ for submit@debbugs.gnu.org; Mon, 23 Aug 2021 03:38:04 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:47203) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mI4Wv-0003T0-JL for 18875@debbugs.gnu.org; Mon, 23 Aug 2021 03:38:03 -0400 Received: (Authenticated sender: juri@linkov.net) by relay10.mail.gandi.net (Postfix) with ESMTPSA id E5F47240004; Mon, 23 Aug 2021 07:37:53 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#18875: 25.0.50; Dired -- add support for ls --time-style with a space Organization: LINKOV.NET References: <877dgh7c79.fsf@gnus.org> <87wnoh5xcy.fsf@gnus.org> <87mtpahtw8.fsf@mail.linkov.net> <87tujhy16q.fsf@gnus.org> Date: Mon, 23 Aug 2021 10:18:45 +0300 In-Reply-To: <87tujhy16q.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 22 Aug 2021 17:00:13 +0200") Message-ID: <87r1ekestu.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 18875 Cc: Keith David Bershatsky , 18875@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> The commit 04f723dec944eaa7b5e99373840a8bf920ba5fdd >> broke my config with the error signaled by insert-directory: >> (error "Listing directory failed but ‘access-file’ worked") >> >> When dired-listing-switches is customized to >> "-Alv --block-size='1" > > Hm, well, that's not a valid shell string, is it? > > It should be "-Alv --block-size=\"'1\"" or something like that to be > valid... Then split-string-shell-command parses correctly: (split-string-shell-command "-Alv --block-size=\"'1\"") ("-Alv" "--block-size='1") but split-string-and-unquote fails: (split-string-and-unquote "-Alv --block-size=\"'1\"") ("-Alv" "--block-size=" "'1") > Hm... Oh! The doc string actually documents this (that it's not using > shell quoting). > > --- > Options that include embedded whitespace must be quoted > like this: "--option=value with spaces"; you can use > ‘combine-and-quote-strings’ to produce the correct quoting of > each option. > --- Ah, now I see what is the correct way, and indeed both functions work when dired-listing-switches is customized to "-Alv \"--block-size='1\"". (split-string-shell-command "-Alv \"--block-size='1\"") ("-Alv" "--block-size='1") (split-string-and-unquote "-Alv \"--block-size='1\"") ("-Alv" "--block-size='1") > So this was the original answer to this bug report. I'll revert the > change. Thanks, it's good that don't need to amend the existing customization. From unknown Wed Jun 25 02:11:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 20 Sep 2021 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator