Re: [PATCH] Add support for ~/foo style relative paths

Subject: Re: [PATCH] Add support for ~/foo style relative paths

Date: Fri, 01 Nov 2024 20:57:15 +0100

To: notmuch@notmuchmail.org

Cc:

From: Ralph Seichter


* Tomi Ollila:

> IMO only deviation from this can be *not* supporting ~user. ~foo
> expanding as ${HOME}foo is inconsistent and unexpected...

Fair enough. Still, supporting only the "~/" prefix for ${HOME}/ but
interpreting "~bob" as ${HOME}/~bob is just as unexpected, don't you
think?


> PS. did you know that e.g. ssh does not expand ~ -> getenv("HOME"),
> but reads the real directory from passwd database.

If I had to guess, I'd say this was probably done with security concerns
in mind? Avoid possible shenanigans with a process' environment.

-Ralph
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: