pathchk <pathname...>

Check pathnames for POSIX portability

Arguments

NameDescription
pathnamePathname(s) to check

Options

NameDescription
-pPerform portability checks on the specified pathname arguments, writes messages if 1) path is longer than _POSIX_PATH_MAX (255) bytes 2) contains a component longer than _POSIX_NAME_MAX (14) bytes, contains any character not in the portable filename character set
-PIn addition to the default or -p checks, write a diagnostic for each argument that 1) is empty 2) contains a component that starts with a hyphen