R
Rory Glenn Pascua
Guest
Can anyone help me understand the script below?
#!/bin/bash
if [ "foo" = "foo" ]; then
echo expression evaluated as true
fi
I'm trying to understand why there's space between the square brackets and "foo". Also I want to know if I can use curly brackets or parentheses instead of the square brackets. Thanks in advance.
#!/bin/bash
if [ "foo" = "foo" ]; then
echo expression evaluated as true
fi
I'm trying to understand why there's space between the square brackets and "foo". Also I want to know if I can use curly brackets or parentheses instead of the square brackets. Thanks in advance.