Add pathchk(1)

New command, including man page.
UTF-8 compatible and should be POSIX-compliant.

Signed-off-by: Mattias Andrée <maandree@kth.se>
This commit is contained in:
Mattias Andrée
2016-02-03 20:12:26 +01:00
committed by sin
parent cfc37be486
commit b445614f70
6 changed files with 161 additions and 1 deletions

35
pathchk.1 Normal file
View File

@@ -0,0 +1,35 @@
.Dd 2016-02-03
.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
A filename was not valid or portable.
.It > 0
An error occurred.
.El
.Sh STANDARDS
The
.Nm
utility is compliant with the
.St -p1003.1-2013
specification.