Curly Braces Vs Parentheses Bash at charlesjhill blog

Curly Braces Vs Parentheses Bash. it doesn't like space where curly braces are concerned. you see, arrays in bash are defined by putting elements between parenthesis and separating each element using a space, like this:

Math the meaning of braces { }
from www.solving-math-problems.com

in addition to the creation of a subshell, there is a subtle difference between these two constructs due to historical reasons. it doesn't like space where curly braces are concerned. We'll go through in order of net total squigglyness (nts score).

Math the meaning of braces { }

Curly Braces Vs Parentheses Bash it doesn't like space where curly braces are concerned. In this particular example, it makes no difference. curly braces are also used for parameter expansion. Month=(jan feb mar apr may jun jul aug sep oct nov dec)