This has become a style over the past few years:
if [ -x "$filename" ]; then
echo "hi"
fi
However, when dinosaurs such as Burroughs and Sperry Rand ruled the earth, I learned to write if such statements were as follows:
if [ -x "$filename" ]
then
echo "hi"
fi
Then you don’t even need a semicolon.
then , if, , C , if:
if (! strcmp("foo", "bar")) {
printf "Strings equal\n";
}
, if.