Subject: bug#12517: 24.2; (file-name-directory "~") returns nil

From: Andreas Schwab <[email-masked]>
Date: Wed, 26 Sep 2012 09:14:43 +0200

Leo <[email-masked]> writes:

> I was bitten by this corner case that (file-name-directory "~") returns
> nil. I wonder if this is a bug/oversight?

That's not different from (file-name-directory "a").  The function works
purely textual and does not expand the argument, you have to call
expand-file-name yourself.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."