Go to the first, previous, next, last section, table of contents.


Newer: Compare file modification times

Newer compares file modification times. Synopsis:

newer src dependent

Newer exits successfully if the file src exists and is older as dependent, i.e., the modification time (mtime) of src is greater than that of dependent. See section `Attribute Meanings' in GNU C Library.

Although this could be written as a Perl script (see section `File Operations' in Perl) or using the `--full-time' option supported by ls (see section `ls invocation' in GNU file utilities), it seems undesirable to depend on such independent, and sadly non-universal, programs.

This is used by MakeMPX (see section MakeMPX: Support MetaPost labels).


Go to the first, previous, next, last section, table of contents.