bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#28156: Emacs quietly munges symlink contents


From: Paul Eggert
Subject: bug#28156: Emacs quietly munges symlink contents
Date: Mon, 21 Aug 2017 01:34:20 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

Eli Zaretskii wrote:

No need to affect its interactive invocation.

Yes, that's what npostavs suggested too. I plan to look into it.


   (file-symlink-p "/:/tmp/symlink")

There's special code in file-symlink-p to support this and return a
quoted name of the symlink target.  For some reason, you wanted to
remove that code.

The proposed change to file-symlink-p doesn't affect support for file name quoting in its argument string. All it affects is the returned string. There is no need for it to quote the returned string, just as there is no need for read-file-name to quote the string that it returns. Neither function is documented to quote its return value, and neither should do so.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]