{string}[${string}}"
abcd_[_efgh_[_ijkl_[_mnop_[_qrst
bash-5.2$ echo "${var// /${string}[${string}}"
bash: bad substitution: no closing `}' in ${var// /${string}[${string}}
bash-5.2$ echo "${var//a/${string}[${string}}"
bash: bad substitution: no closing `}&
escaped bracket):
bash-5.2$ echo "${var1// /${var2}\[${var2}}"
qwertyuiop_[_asdfghjkl
# also working as expected (with closing bracket):
bash-5.2$ echo "${var1// /${var2}[${var2}]}"
qwertyuiop_[_]asdfghjkl
# also working as expected (no variable before the bracket):
bash-5.2$ echo "${var1// /[${var2}}"
qwertyuiop[_asdfghjkl
--
Antoine
ASH_COMPAT # launching a new bash with compat32
in BASHOPTS has overriden the value
32
Is it intended that the value has no dot?
Regards,
Marc-Antoine
Hello !
I've just run cppcheck (a static C/C++ code analyzer) against the latest
bash code (freshly cloned from the git repo), and it points out some
interesting issues.
You can see the log here : http://pastebin.com/pZHQShJp
Hope that was useful to you.
Antoine.