help-bash
[Top][All Lists]
Advanced

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

invisible var content to echo when not quoted - why


From: Alex fxmbsw7 Ratchev
Subject: invisible var content to echo when not quoted - why
Date: Sun, 28 Nov 2021 09:52:10 +0100

declare 's=1 foo["$s"]=asd' ; declare -p s foo ; echo $s ; echo "$s" ; echo
fin

declare -- s="1 foo[\"\$s\"]=asd"
bash: declare: foo: not found

1 foo["$s"]=asd
fin


notice the empty line
i know foo unset is my mistake


reply via email to

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