basename: support more than one argument
commita3eb71a98fd195e52d335fb8d6bdc2a719cc2c88
authorJérémy Compostella <jeremy.compostella@gmail.com>
Sun, 4 Mar 2012 19:00:36 +0000 (4 20:00 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 7 Mar 2012 12:59:00 +0000 (7 12:59 +0000)
tree9e1d64ff718175b75422d71037adcb89cc86b9eb
parent4b4a465798a212925670cc4fef7610678d221d69
basename: support more than one argument

* src/basename.c (perform_basename): New function refactored from
main() that performs the basename work on a STRING, optionally
removes a trailing SUFFIX and outputs the result.
(main): Handle new options.
* doc/coreutils.texi (basename invocation): Mention new options.
* test/misc/basename: Add new options test cases.
* NEWS (New features): Mention it.
NEWS
doc/coreutils.texi
src/basename.c
tests/misc/basename