[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#40977: --load-path does not honor ~
From: |
Ludovic Courtès |
Subject: |
bug#40977: --load-path does not honor ~ |
Date: |
Sat, 02 May 2020 15:14:01 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Danny Milosavljevic <address@hidden> skribis:
>> After processing options, guix need to "expanduser()" (as it is called
>> in Python) on all arguments which are paths.
>
> Please don't do it.
>
> UNIX has its warts, and this is a well-known one (use ${HOME} instead).
Seconded.
Tilde expansion is performed by the shell. In the case of
‘--foo=~/bar’, tilde expansion does not happen because ~ is right in the
middle of a string.
It’s admittedly annoying, but it’s not something Guix itself should
paper over. Doing that would open a can of worms, as illustrated by the
example Tobias gave.
Ludo’.