Hello, https://www.gnu.org/software/bash/manual/bash.html#Bash-POSIX-Mode says:
19. Literal tildes that appear as the first character in elements of the PATH variable are not expanded as described above under Tilde Expansion. Is this no longer true from version 5.2 on? $ bash --posix -c 'echo $BASH_VERSION; PATH=~/x:~/y; echo $PATH' 5.1.4(1)-release /home/schulte/x:~/y $ bash-5.2.37 --posix -c 'echo $BASH_VERSION; PATH=~/x:~/y; echo $PATH' 5.2.37(1)-release /home/schulte/x:/home/schulte/y Best regards, Martin