From: Ralf Wildenhues Date: Tue, 5 Dec 2006 22:13:48 +0000 (+0000) Subject: * tests/test-argp-2.sh: Fix test to match actual output. X-Git-Tag: cvs-readonly~1503 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=020b4c764b33c3559508876b54a86aac3ed552d2;p=gnulib.git * tests/test-argp-2.sh: Fix test to match actual output. (func_compare): Fix sed script to be portable. --- diff --git a/ChangeLog b/ChangeLog index 90002e71e..784192543 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-12-05 Ralf Wildenhues + + * tests/test-argp-2.sh: Fix test to match actual output. + (func_compare): Fix sed script to be portable. + 2006-12-05 Paul Eggert * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a diff --git a/tests/test-argp-2.sh b/tests/test-argp-2.sh index 2bd8d95c5..5ea7a4297 100755 --- a/tests/test-argp-2.sh +++ b/tests/test-argp-2.sh @@ -24,7 +24,9 @@ ERR=0 func_compare() { # If argp was compiled without base_name, it will display full program name - sed '1{s,: [^ ]*/test-argp,: test-argp,;}' | cmp - $TMP + sed '1{ + s,: [^ ]*/test-argp,: test-argp, + }' | cmp - $TMP } #### @@ -70,9 +72,9 @@ documentation string one one unit two two units - -?, --help Give this help list - --usage Give a short usage message - -V, --version Print program version + -?, --help give this help list + --usage give a short usage message + -V, --version print program version Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.