| FTEST(1) | General Commands Manual | FTEST(1) |
ftest, newer - test file attributes
ftest test arg
newer file1 file2
Ftest checks the specified attribute of arg according to test and yields an exit status signifying the result. For all tests apart from -t, arg is the name of the file to be tested; for -t, it is the number of a file descriptor. Available tests are:
Newer checks whether file1 exists and is no older than file2, which must also exist; if so, it yields a true exit status. Otherwise, it yields an error status. Neither file may be a directory.
/appl/cmd/ftest.b
/appl/cmd/newer.b
These commands work only with sh (1) as none of the other Inferno shells can check the exit status of a command.
Checking for read, write and execute capabilities is speculative - the file server has the last say. Group permissions are ignored.