Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: exit(1) for no argument (#520)
* The wording of standards document is "exit 1 if expression evaluates to false, or if expression is missing" * A usage example might be "[ $xyz ]" in a shell script; unquoted variable will substitute to empty string if not set so no argument is passed to test command * 4 different versions of test exit(1) consistently for this case: pdksh builtin, bash builtin, /usr/bin/test on Linux and /bin/test on OpenBSD 1. https://pubs.opengroup.org/onlinepubs/009695399/utilities/test.html
- Loading branch information