1 .\" $NetBSD: pathchk.1,v 1.6 2010/11/16 23:59:02 wiz Exp $
3 .\" Copyright (c) 2001, 2002 Chuck Rouillard
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. The name of the author may not be used to endorse or promote
15 .\" products derived from this software without specific prior written
18 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
19 .\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
22 .\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" from FreeBSD: pathchk.1,v 1.3 2002/12/12 17:26:01 ru Exp
45 utility checks whether each of the specified
47 arguments is valid or portable.
49 A diagnostic message is written for each argument that:
56 Contains any component longer than
61 depends on the underlying file system.)
63 Contains a directory component that is not searchable.
66 It is not considered an error if a
68 argument contains a nonexistent component as long as a component by that
69 name could be created.
71 The options are as follows:
72 .Bl -tag -width indent
74 Perform portability checks on the specified
77 Diagnostic messages will be written for each argument that:
85 Contains a component longer than
90 Contains any character not in the portable filename character set (that is,
91 alphanumeric characters,
96 No component may start with the hyphen
102 Check whether the names of files in the current directory are portable to
107 .Dl "find . -exec pathchk -p \e{\e} +"
108 or the more efficient:
109 .Dl "find . -print0 | xargs -0 pathchk -p"