Simon Josefsson <si...@josefsson.org> writes: > test-parse-duration fails on Solaris [1]: > > ./test-parse-duration.sh: -u3: is not an identifier > FAIL: test-parse-duration.sh > > How about the patch below? Seems to work here.
Pushed. > /Simon > > [1] http://autobuild.josefsson.org/gnulib/log-200905311157044761000.txt > > diff --git a/tests/test-parse-duration.sh b/tests/test-parse-duration.sh > index 1200561..6aeb225 100755 > --- a/tests/test-parse-duration.sh > +++ b/tests/test-parse-duration.sh > @@ -60,7 +60,7 @@ cat > "${tmpf}" <<- _EOF_ > _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