[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Simple use of HOME with ${} instead of single $ sometimes doen't wor
From: |
Chet Ramey |
Subject: |
Re: Simple use of HOME with ${} instead of single $ sometimes doen't work... Ubuntu 22.04.3 LTS |
Date: |
Fri, 20 Oct 2023 09:13:54 -0400 |
User-agent: |
Mozilla Thunderbird |
On 10/20/23 5:41 AM, Etienne Lorrain via Bug reports for the GNU Bourne
Again SHell wrote:
etienne@etienne-7950x:~$ echo ${HOME}:/home/${USER}
bash: ${HOME}:/home/${USER}: bad substitution
etienne@etienne-7950x:~$ echo ${HOME}
bash: ${HOME}: bad substitution
The most likely explanation is that those are not ASCII braces, but some
multibyte character. You might also have non-visible characters there
that can't form a valid variable name.
--
``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/