Section: User Commands (1)
Updated: March 2015
[ EXPRESSION ]
Exit with the status determined by EXPRESSION.
An omitted EXPRESSION defaults to false. Otherwise, EXPRESSION is true or false and sets exit status. It is one of:
Except for -h and -L, all FILE-related tests dereference symbolic links. Beware that parentheses need to be escaped (e.g., by backslashes) for shells. INTEGER may also be -l STRING, which evaluates to the length of STRING.
NOTE: [ honors the --help and --version options, but test does not. test treats each of those as it treats any other nonempty STRING.
GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Report [ translation bugs to <http://translationproject.org/team/>
Copyright © 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
Full documentation at: <http://www.gnu.org/software/coreutils/[>
or available locally via: info '(coreutils) test invocation'
Tutoriais de Tecnologia Web