I was wondering about single parentheses in bash. I know that they are used for executing commands in subshells and that they are used for creating arrays, but are they used for anything else?
One thing that caught my attention is that when you use the in variable assignment, like
var=(hello) echo $var # hello
bash doesn't generate an error or anything, and the output is the same as if
Are these two variable definitions the same or is there a difference?