Re: bracket needs to be escaped in variable substitution?

2022-10-06 Thread Antoine
{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 `}&

bracket needs to be escaped in variable substitution?

2022-10-06 Thread Antoine
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

Bash 5 incorrectly overrides BASH_COMPAT env variable

2019-04-18 Thread Marc-Antoine Perennou
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

cppcheck warnings

2011-09-11 Thread Antoine Balestrat
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.