diff options
Diffstat (limited to 'util/sbase/pathchk.1')
-rw-r--r-- | util/sbase/pathchk.1 | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/util/sbase/pathchk.1 b/util/sbase/pathchk.1 new file mode 100644 index 00000000..e0b69b65 --- /dev/null +++ b/util/sbase/pathchk.1 @@ -0,0 +1,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. |