[CentOS] Special characters in bash strings

Thu Jul 7 02:42:19 UTC 2022
Gordon Messmer <gordon.messmer at gmail.com>

On 7/6/22 18:41, H wrote:
> To my consternation this worked fine in some places but not in others.


It might be easier to explain if you had an example of where it worked.  
The bash man page has a section titled "EXPANSION" that details the 
order in which expansions happen.  Since tilde expansion happens before 
variable expansion, the case you're discussing shouldn't work in any 
context (other than an eval or equivalent).