bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Assignment with colons *should* be tilde expanded in POSIX mode


From: Chet Ramey
Subject: Re: Assignment with colons *should* be tilde expanded in POSIX mode
Date: Tue, 2 Nov 2021 11:11:26 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.2.1

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    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]