On 11/1/21 6:37 PM, Anders Kaseorg wrote:
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. However, that fix also seems to have broken the actual 
assignment

     $ foo=~:~
     $ echo "$foo"
     /home/anders:~

where both tildes should be expanded in POSIX mode, because this is an 
assignment.

Thanks for the report. I'll take a look and fix whatever is wrong.

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to