changeset 11596:c1d3603bec42

tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
author Simon Josefsson <simon@josefsson.org>
date Tue, 02 Jun 2009 10:45:21 +0200
parents 84a17b4defb3
children 2305ee9778fb
files ChangeLog tests/test-parse-duration.sh
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-06-02  Simon Josefsson  <simon@josefsson.org>
+
+	* tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
+
 2009-06-02  Simon Josefsson  <simon@josefsson.org>
 
 	* m4/manywarnings.m4: Add GCC 4.4 warnings.
--- a/tests/test-parse-duration.sh
+++ b/tests/test-parse-duration.sh
@@ -60,7 +60,7 @@
 	_EOF_
 
 exec 3< "${tmpf}"
-while read -u3 line
+while read line <&3
 do
     v=`${exe} "${line}"` || { ls -l "${tmpf}"; die "Failed: ${exe} '${line}'"; }
     test $v -eq 38898367 || die $v is not 38898367