From 57c929da8bbc297249dadc560e8e3a569b0d685d Mon Sep 17 00:00:00 2001 From: Jérémy Compostella Date: Fri, 9 Mar 2012 19:21:42 +0100 Subject: dirname: support more than one argument * src/dirname.c (main): Handle new -z option and manage more than one argument. * doc/coreutils.texi (dirname invocation): Mention it. * NEWS (New features): Mention it. * tests/misc/dirname: Add a two arguments test. --- tests/misc/dirname | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/misc') diff --git a/tests/misc/dirname b/tests/misc/dirname index 37cf7cf18..002183678 100755 --- a/tests/misc/dirname +++ b/tests/misc/dirname @@ -35,8 +35,6 @@ my @Tests = ( ['fail-1', {ERR => "$prog: missing operand\n" . "Try '$prog --help' for more information.\n"}, {EXIT => '1'}], - ['fail-2', qw(a b), {ERR => "$prog: extra operand 'b'\n" - . "Try '$prog --help' for more information.\n"}, {EXIT => '1'}], ['a', qw(d/f), {OUT => 'd'}], ['b', qw(/d/f), {OUT => '/d'}], @@ -51,6 +49,7 @@ my @Tests = ['k', qw(///a///b), {OUT => '///a'}], ['l', qw(///a//b/), {OUT => '///a'}], ['m', qw(''), {OUT => '.'}], + ['n', qw(a/b c/d), {OUT => "a\nc"}], ); # Append a newline to end of each expected 'OUT' string. -- cgit v1.2.3-70-g09d2