As you know, POSIX requires tilde expansion following an an unquoted colon in
an assignment [1]. A bug was reported [2] against bash 5.1-alpha that the
tildes in
$ echo foo=~:~
foo=~:~
should not be expanded in POSIX mode, because this is not an assignment. That
was fixed in 5.1-beta.
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKA