From a3eb71a98fd195e52d335fb8d6bdc2a719cc2c88 Mon Sep 17 00:00:00 2001 From: Jérémy Compostella Date: Sun, 4 Mar 2012 20:00:36 +0100 Subject: 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 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 800666985..04c911fbd 100644 --- a/NEWS +++ b/NEWS @@ -16,6 +16,10 @@ GNU coreutils NEWS -*- outline -*- split now accepts the --additional-suffix option, to append an additional static suffix to output file names. + basename now supports the -a and -s options, which allow processing + of more than one argument at a time. Also the complementary + -z option was added to delimit output items with the NUL character. + ** Bug fixes mv now lets you move a symlink onto a same-inode destination file that -- cgit v1.2.3-54-g00ecf