| ▲ | projektfu 4 hours ago | |
Here is the part of the test.c source from V7 Unix:
So, if the professor was missing the "[" command, they were missing a link. More likely, they had a weird orthodoxy about using "test" instead of "[" because reasons. One good reason to use "test" instead of "[" in a Bourne shell control statement is if you are running a list of commands between "if" and "then", and the test is the last part of the list.Another good place to use "test" is if you are not in a control statement and you are just setting $?. Edit: EQ() is defined as: | ||