最佳答案
I was trying to write a Bash script that uses an if
statement.
if[$CHOICE -eq 1];
The script was giving me errors until I gave a space before and after [
and before ]
as shown below:
if [ $CHOICE -eq 1 ];
My question here is, why is the space around the square brackets so important in Bash?