Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
test(1)
Edit
PageHistory
Diff
Info
LikePages
TEST !!!TEST NAME SYNOPSIS DESCRIPTION AUTHOR REPORTING BUGS COPYRIGHT SEE ALSO ---- !!NAME test - check file types and compare values !!SYNOPSIS __test__ ''EXPRESSION''__ [[__ ''EXPRESSION'' ]__ test__ ''OPTION'' !!DESCRIPTION Exit with the status determined by EXPRESSION. __--help__ display this help and exit __--version__ output version information and exit EXPRESSION is true or false and sets exit status. It is one of: ( EXPRESSION ) EXPRESSION is true ! EXPRESSION EXPRESSION is false EXPRESSION1 __-a__ EXPRESSION2 both EXPRESSION1 and EXPRESSION2 are true EXPRESSION1 __-o__ EXPRESSION2 either EXPRESSION1 or EXPRESSION2 is true [[-n] STRING the length of STRING is nonzero __-z__ STRING the length of STRING is zero STRING1 = STRING2 the strings are equal STRING1 != STRING2 the strings are not equal INTEGER1 __-eq__ INTEGER2 INTEGER1 is equal to INTEGER2 INTEGER1 __-ge__ INTEGER2 INTEGER1 is greater than or equal to INTEGER2 INTEGER1 __-gt__ INTEGER2 INTEGER1 is greater than INTEGER2 INTEGER1 __-le__ INTEGER2 INTEGER1 is less than or equal to INTEGER2 INTEGER1 __-lt__ INTEGER2 INTEGER1 is less than INTEGER2 INTEGER1 __-ne__ INTEGER2 INTEGER1 is not equal to INTEGER2 FILE1 __-ef__ FILE2 FILE1 and FILE2 have the same device and inode numbers FILE1 __-nt__ FILE2 FILE1 is newer (modification date) than FILE2 FILE1 __-ot__ FILE2 FILE1 is older than FILE2 __-b__ FILE FILE exists and is block special __-c__ FILE FILE exists and is character special __-d__ FILE FILE exists and is a directory __-e__ FILE FILE exists __-f__ FILE FILE exists and is a regular file __-g__ FILE FILE exists and is set-group-ID __-h__ FILE FILE exists and is a symbolic link (same as __-L__) __-G__ FILE FILE exists and is owned by the effective group ID __-k__ FILE FILE exists and has its sticky bit set __-L__ FILE FILE exists and is a symbolic link (same as __-h__) __-O__ FILE FILE exists and is owned by the effective user ID __-p__ FILE FILE exists and is a named pipe __-r__ FILE FILE exists and is readable __-s__ FILE FILE exists and has a size greater than zero __-S__ FILE FILE exists and is a socket __-t__ [[FD] file descriptor FD (stdout by default) is opened on a terminal __-u__ FILE FILE exists and its set-user-ID bit is set __-w__ FILE FILE exists and is writable __-x__ FILE FILE exists and is executable 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. !!AUTHOR Written by FIXME: ksb and mjb. !!REPORTING BUGS Report bugs to !!COPYRIGHT Copyright 2000 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. !!SEE ALSO The full documentation for __test__ is maintained as a Texinfo manual. If the __info__ and __test__ programs are properly installed at your site, the command __info test__ should give you access to the complete manual. ----
2 pages link to
test(1)
:
ash(1)
Man1t
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.