From ec4dcc30350a7e8b055c41b5a13d30e655f29006 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Mon, 13 Apr 2015 07:59:49 +0000 Subject: [PATCH] added man page for basename taken from pdcore. actual implementation is mine. --- utils/basename/basename.1 | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 utils/basename/basename.1 diff --git a/utils/basename/basename.1 b/utils/basename/basename.1 new file mode 100644 index 0000000..e330585 --- /dev/null +++ b/utils/basename/basename.1 @@ -0,0 +1,30 @@ +.TH BASENAME 1 "2008-1.01" "pdcore utilities" "User Commands" +.SH NAME +basename \- return non-directory portion of a pathname +.SH SYNOPSIS +.B basename +string [suffix] +.SH DESCRIPTION +Return the filename portion of a path/filename string, optionally stripping +a suffix from the returned filename. +.SH OPTIONS +.TP +None +.SH OPERANDS +.TP +string +Input pathname +.TP +suffix +Suffix to strip from filename after path component removed. +.SH "AUTHORITATIVE DOCUMENTATION" + +.SH VERSION AND COMPLIANCE +Utility version 1.01 +.P +Functional compliance with POSIX:2008 (IEEE Std 1003.1-2008; +Shell and Utilities, Base Specifications Issue 7). +.SH UNLICENSE +This is free and unencumbered software released into the public domain, +provided "as is", without warranty of any kind, express or implied. See the +file UNLICENSE and the website for further details. -- 2.40.0