While learning a bit about bash, I come to see four types of ways of working with if
statements:
- Single Parenthesis - ( ... )
- Double Parenthesis - (( ... ))
- Single Square Bracket - [ ... ]
- Double Square Brackets - [[ ... ]]
What is the difference between Parenthesis and Square Brackets in bash.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…