summaryrefslogtreecommitdiff
path: root/t/vtexi4.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/vtexi4.sh')
-rwxr-xr-xt/vtexi4.sh14
1 files changed, 5 insertions, 9 deletions
diff --git a/t/vtexi4.sh b/t/vtexi4.sh
index 6038444b5..27b0636f7 100755
--- a/t/vtexi4.sh
+++ b/t/vtexi4.sh
@@ -24,16 +24,12 @@
required='makeinfo tex texi2dvi-o'
. ./defs || Exit 1
-case `LC_ALL=C date '+%u'` in
- [1-7]) date_is_posix=:;;
- *) date_is_posx=false;;
-esac
-$date_is_posix \
- && day=`LC_ALL=C date '+%d'` && test -n "$day" \
- && month=`LC_ALL=C date '+%B'` && test -n "$month" \
- && year=`LC_ALL=C date '+%Y'`&& test -n "$year" \
+test $(LC_ALL=C date '+%u') -gt 0 && test $(LC_ALL=C date '+%u') -lt 8 \
+ && day=$(LC_ALL=C date '+%d') && test -n "$day" \
+ && month=$(LC_ALL=C date '+%B') && test -n "$month" \
+ && year=$(LC_ALL=C date '+%Y') && test -n "$year" \
|| skip_ "'date' is not POSIX-compliant enough"
-day=`echo "$day" | sed 's/^0//'`
+day=$(echo "$day" | sed 's/^0//')
(echo 'x' | grep x) \
|| skip_ "grep doesn't work on input that is not pure text"