Le 30/05/2025 à 09:36, Martin Schulte écrivait :
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 --posix -c 'echo $BASH_VERSION; PATH=~/x:~/y; echo $PATH'
5.2.21(1)-release
/home/lea/x:/home/lea/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


--
Léa Gris

Reply via email to