From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#36490: 26.1; directory-files-recursively breaks when it encounters a directory named "~" Date: Tue, 09 Jul 2019 17:50:49 +0200 Message-ID: References: <87muhvyotd.fsf@gmx.de> <87zhlo1bfl.fsf@mouse.gnus.org> <83bly35igd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="142151"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 36490@debbugs.gnu.org, erik_hahn@gmx.de To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 09 17:53:53 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hksRF-000asb-FA for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jul 2019 17:53:53 +0200 Original-Received: from localhost ([::1]:51312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hksRE-00034v-89 for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jul 2019 11:53:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51293) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hksOZ-0002L1-Is for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2019 11:51:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hksOX-00004y-7j for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2019 11:51:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53266) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hksOU-0008Um-6H for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2019 11:51:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hksOT-00053S-Ui for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2019 11:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Jul 2019 15:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36490 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 36490-submit@debbugs.gnu.org id=B36490.156268745619416 (code B ref 36490); Tue, 09 Jul 2019 15:51:01 +0000 Original-Received: (at 36490) by debbugs.gnu.org; 9 Jul 2019 15:50:56 +0000 Original-Received: from localhost ([127.0.0.1]:33854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hksON-000536-Mi for submit@debbugs.gnu.org; Tue, 09 Jul 2019 11:50:55 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:48416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hksOL-00052y-Kn for 36490@debbugs.gnu.org; Tue, 09 Jul 2019 11:50:53 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hksOH-0006lG-83; Tue, 09 Jul 2019 17:50:51 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAD1BMVEVbSk4WCQ00IykkFhtF MjcvCCv0AAACPklEQVQ4jW1U0ZUjMQhzJjTg+ArIYhowTAE+L/3XdJJ9ebcf532bZCxAIJGU8v8j 5VEt8VZK5tyvPMsI5OR9Ucu/twwhMJOAdFcewkid5dnm/nSF8/bULzLL5WUlLq5Q3Sw8KbhQQVUU BWN+OuLHy1N1IfRwEpNUA0csVwPZnJJ/W0bRLM96gxSRuD5tSJrNDSy1a9/maQrxmOBZX0tTzmxM FDQ9d0ZLTds6bP5lxkHKc4BkQ+sIwoQNRH3Z0nUflVbs+5OBWmpGSltQbHfAOWpbCp3QQgYE++hy AVAA3lEwzqxo7XCkUhfrEXrM4UTgAIDortHCD7Osf4BHjIZKbzInVD3AAlBr9E0tQgkelZqwVB1x LIRsUwn8AoCuGrnpCQwoH4ATNpp7/J7yA1AAjjbFSsKrH0C47QV5Y8Q0Atahh3o4LqbIxN8i0Kz7 Soz9hqswviyIvQHI0Vd4oLgxvHRUBoA63rWDQghgOK5qebyQ6ZjZOeVZaiaUB52AsNpvIBAJwiWB 5zecsPC73wwGDzMhpTgEz94sbiQI9zNXRwf4XsDn3mCr7ZmX0ybBtt+AQF19cbsQ+GZj5Ur9AoAx /PTkUOZSx38MDx3aOpc8v1BSeo9yYa/cgbaBjaT13LoI7O6IqAGD3+gE+Z6IB/CoQbthMNxOALcg cgOvPiqW7r3NiJZXbWMDzRE/XuNGE5ASq1lHI1CdW3l+Hva2ld/1ADxOnfDdKcKnUT8AbP0OTG7y vR8/GVypL8S1pnjY0B/uuJ4Lq2IKKgAAAABJRU5ErkJggg== In-Reply-To: <83bly35igd.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 09 Jul 2019 18:35:46 +0300") 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: 209.51.188.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:162502 Archived-At: Eli Zaretskii writes: >> An initial =E2=80=98~/=E2=80=99 expands to your home directory. >> An initial =E2=80=98~USER/=E2=80=99 expands to USER=E2=80=99s home direc= tory. >> --- >>=20 >> Assuming the "An initial" refers to the first parameter, then [...] > If you want "~" to be interpreted literally, you need to protect it > with "/:". Sorry; I don't quite follow you here. The doc string says that "~/" is interpreted specially. There's no "/" in "~". :-) That=20 (expand-file-name "~/" "/tmp/") =3D> "/home/larsi/" is fine, because "~/" isn't a valid file name. But "~" is, and that's the problem. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no