[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: file-exists-p on empty string
From: |
Robert Pluim |
Subject: |
Re: file-exists-p on empty string |
Date: |
Wed, 27 Feb 2019 17:00:45 +0100 |
Stefan Monnier <address@hidden> writes:
>> (file-exists-p "")
>> ==> t
>
> Elisp doesn't handle file names quite like POSIX, indeed.
>
> I don't think we can change the above behavior without introducing other
> odd behaviors. E.g. currently (file-name-nondirectory "/a/b/") return "",
> which is consistent with the above behavior.
? file-name-nodirectory doesnʼt use expand-file-name anywhere, and we
can fix file-exists-p without changing expand-file-name, so I donʼt
follow you here.
Robert
Re: file-exists-p on empty string, Stefan Monnier, 2019/02/27
- Re: file-exists-p on empty string,
Robert Pluim <=
Re: file-exists-p on empty string, Eli Zaretskii, 2019/02/27
Re: file-exists-p on empty string, lg . zevlg, 2019/02/27