summaryrefslogtreecommitdiff
path: root/util/sbase/pathchk.1
blob: e0b69b654b899266511e7fc710fc6fa9292e263f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.Dd February 3, 2016
.Dt PATHCHK 1
.Os sbase
.Sh NAME
.Nm pathchk
.Nd validate filename validity or portability
.Sh SYNOPSIS
.Nm
.Op Fl p
.Op Fl P
.Ar file Ar ...
.Sh DESCRIPTION
.Nm
checks that filenames are valid for the system,
and optional on other POSIX systems.
.Sh OPTIONS
.Bl -tag -width Ds
.It Fl p
Check for most POSIX systems.
.It Fl P
Check for empty pathnames and leading hythens.
.El
.Sh EXIT STATUS
.Bl -tag -width Ds
.It 0
All pathname operands passed all of the checks.
.It > 0
An error occurred.
.El
.Sh STANDARDS
POSIX.1-2013.