Project Info Name.......: gnu-hello
Description: GNU Hello


gnu-hello       
Info
Commit...:ea0f8691df45880c536a04e42d3a7a46f21921ae
Author...:Bruno Haible
Committer:Bruno Haible
Date.....:Wed Dec 14 19:23:31 2016 +0100
Parents..:e8e46123cfe62170a2f7f79db6b471b66ae36947

Message
Make the greeting-2 test POSIX compliant and traceable through "sh -x".

* tests/greeting-2: Don't use the "set - ARGS" idiom. References:
https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Limitations-of-Builtins.html
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html

Changes
diff --git a/tests/greeting-2 b/tests/greeting-2
line changes: +2/-2
index f7d69e1..ab6b459
--- a/tests/greeting-2
+++ b/tests/greeting-2
@@ -2,7 +2,7 @@
 # Test very long --greeting argument, and also show skipping a test.
 # (And one way to compute full moons.)
 #
-# Copyright (C) 2001, 2006, 2014, 2015 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2006, 2014-2016 Free Software Foundation, Inc.
 #
 # Copying and distribution of this file, with or without modification,
 # are permitted in any medium without royalty provided the copyright
@@ -16,7 +16,7 @@ Wuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
 EOF
 
 # Werewolves cry at full moon only.
-set - `TZ=GMT date +"%Y %j %H %M %S"`
+set x `TZ=GMT date +"%Y %j %H %M %S"`; shift
 year=$1; day=$2; hours=$3; minutes=$4; seconds=$5
 years_since_2000=`expr $year - 2000`
 days_since_2000=`expr '(' $years_since_2000 '*' 365 ')' + '(' '(' $years_since_2000 - 1 ')' / 4 ')' + $day`

This website is licensed under AGPL-3.0. Feel free to copy!