Sync with FreeBSD.
commit348c5c22516010cce4727502d30d3efc71bf7f1c
authorpavalos <pavalos>
Tue, 28 Aug 2007 15:36:44 +0000 (28 15:36 +0000)
committerpavalos <pavalos>
Tue, 28 Aug 2007 15:36:44 +0000 (28 15:36 +0000)
treef6432ec204f8a2a919386c05d8a77576cbeb13bc
parent0ae736700b3cc228776b0a9a6ebfd77bcd5cc52a
Sync with FreeBSD.

Make it possible to have this (basename(1)) perform basename(3) on multiple
files.  The traditional behaviour, 'basename string .suffix', is preserved,
however a suffix may now also be specified via a getopt(3) option, -s, such
that if it is specified in that way, all string arguments follow.  There is
also a new flag, -a, which allows a user to say "yes, please basename(3) on
all arguments".

Add EXIT STATUS.

Cross-reference basename(3) and dirname(3).

Obtained-from:  FreeBSD
usr.bin/basename/basename.1
usr.bin/basename/basename.c