ftest man page on Inferno

Man page or keyword search:  
man Server   579 pages
apropos Keyword Search (all sections)
Output format
Inferno logo
[printable version]

FTEST(1)							      FTEST(1)

NAME
       ftest, newer - test file attributes

SYNOPSIS
       ftest test arg

       newer file1 file2

DESCRIPTION
       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:

       -d     True if the file exists and is a directory.

       -e     True if the file exists.

       -f     True if the file exists and is a regular file.

       -r     True if the file exists and is readable.

       -s     True if the file exists and has non-zero size.

       -t     True if the open file represented by the number  arg  represents
	      the same file as /dev/cons.

       -w     True if the file exists and is writable.

       -x     True if the file exists and is executable.

       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.

SOURCE
       /appl/cmd/ftest.b
       /appl/cmd/newer.b

SEE ALSO
       sys-stat(2)

BUGS
       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.

								      FTEST(1)
[top]

List of man pages available for Inferno

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net