pathchk

check path names

Command


SYNOPSIS

pathchk [-p] pathname...


DESCRIPTION

pathchk checks one or more pathnames for validity and portability (based on the underlying file system). A pathname is valid if you can use it to create or access a file without causing a syntax error. A pathname is portable if the file system does not truncate the name when it tries to use it. pathchk writes an error message indicating the error detected and the erroneous path name if any pathname

Options

-p

instead of using the previous criteria, writes an error message if pathname

  • is longer than _POSIX_PATH_MAX bytes;
  • contains any component longer than _POSIX_NAME_MAX bytes;
  • contains any character in any component that is not in the portable file name character set.


DIAGNOSTICS

Possible exit status values are:
0

All pathnames passed the check.

1

An error occurred.

2

Unknown command line option.


PORTABILITY

POSIX.2. x/OPEN Portability Guide 4.0.


SEE ALSO

Commands:
dirname


Updated MKS Toolkit [3khat16.ico]HP3000 [3khat16.ico]3kMail [archive16.gif]