What actually happens when we put conditions without [] (brackets) in if else block in a bash script?
final=” if [ $final ]; then echo “final”; else echo “not final”; fi; Look at this code above. How would it apply and why, if I remove the brackets in the if block? How does it evaluate the condition in that situation? This is how I was trying to write the condition. I actually forgot […]