diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-01-28 21:51:58 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-01-28 21:51:58 +0200 |
commit | 4d691ab28f594c2a85f5e5c6c5d93eb168fade70 (patch) | |
tree | 46f396f53e90eaaca87c7859f4134bc832a2e391 /test/strftime.awk | |
parent | 3f8c0c06075b331d9f305f475f20e99c96fba95c (diff) | |
parent | ab8d7416c064c94e75d80431270321ceaa866719 (diff) | |
download | egawk-4d691ab28f594c2a85f5e5c6c5d93eb168fade70.tar.gz egawk-4d691ab28f594c2a85f5e5c6c5d93eb168fade70.tar.bz2 egawk-4d691ab28f594c2a85f5e5c6c5d93eb168fade70.zip |
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'test/strftime.awk')
-rw-r--r-- | test/strftime.awk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/strftime.awk b/test/strftime.awk index a52957f0..73cdc698 100644 --- a/test/strftime.awk +++ b/test/strftime.awk @@ -8,7 +8,11 @@ BEGIN { maxtries = 10 - datecmd = "date" + # On DOS/Windows, DATECMD is set by the Makefile to point to + # Unix-like 'date' command. + datecmd = DATECMD + if (datecmd == "") + datecmd = "date" fmt = "%a %b %d %H:%M:%S %Z %Y" # loop until before equals after, thereby protecting |