[Haskell-cafe] how to expand ~ in a filepath
jo at durchholz.org
jo at durchholz.org
Tue Jul 22 12:52:40 UTC 2025
On 22.07.25 14:30, Iustin Pop wrote:
> Gemini/Google AI search even claims that it is part of the POSIX
> standard, I don't know if that's true.
It is.
See
https://pubs.opengroup.org/onlinepubs/009604499/utilities/xcu_chap02.html#tag_02_06_01
.
It says that ~ is the current user's home directory, ~blub is the "blub"
users's home directory, or undefined if no "blub" user exists on the system.
It does not say what should happen if the user is present but does not
have a home directory assigned.
More information about the Haskell-Cafe
mailing list