pathchk checks each
pathname to see if it is valid and/or portable. A
pathname is valid if it can be used to
access or create a file without causing syntax errors. A file is portable if no truncation will result on any conforming POSIX.1
implementation.
By default pathchk checks each component of each pathname based on the underlying file system. A diagnostic is
written to standard error for each pathname that:
- -
- Is longer than $(getconf PATH_MAX) bytes.
- -
- Contains any component longer than $(getconf NAME_MAX) bytes.
- -
- Contains any directory component in a directory that is not searchable.
- -
- Contains any character in any component that is not valid in its containing directory.
- -
- Is empty.