It seems that my environment has changed such that if/else statements do not work. Typing this in the terminal:
if true; then echo 1; else echo 2; fi;
will wait for another token (with a >
prompt), not executing as expected.
I've tried writing this statement in other bash environments, and it prints "1" to stdout, as expected. I have no idea what I did to make my if statements not work.