Reading the manual of the test shell command:
test
man test
Description states:
Exit with the status determined b