diff options
author | Chet Ramey <chet.ramey@case.edu> | 2016-11-14 13:46:09 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2016-11-14 13:46:09 -0500 |
commit | 216e2e9b8ba21fff677cf7794ef3d9af8c91d46d (patch) | |
tree | df673f82d50fed0a7bb082d3133c510a5a680228 /tests/printf3.sub | |
parent | 78a3f8a4bae8ef98daa26b64ddbc03c6fc3ffcd0 (diff) | |
download | bash-216e2e9b8ba21fff677cf7794ef3d9af8c91d46d.tar.gz |
commit bash-20161111 snapshot
Diffstat (limited to 'tests/printf3.sub')
-rw-r--r-- | tests/printf3.sub | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/printf3.sub b/tests/printf3.sub index ec14fa34..d45e101c 100644 --- a/tests/printf3.sub +++ b/tests/printf3.sub @@ -6,7 +6,7 @@ SECS=1275250155 export TZ=EST5EDT case $SHELLSTART in -*s*) SHELLSTART=$(perl -e 'print time') ; DATESECS=false ;; # take a shot +*s*) SHELLSTART=$EPOCHSECONDS ; DATESECS=false ;; # take a shot *) DATESECS=true ;; esac @@ -15,7 +15,7 @@ printf "%(abde)Z\n" -1 printf "%(%e-%b-%Y %T)T\n" $SECS -printf -v v1 "%(%e-%b-%Y %T)T\n" $( $DATESECS && date +%s || perl -e 'print time') +printf -v v1 "%(%e-%b-%Y %T)T\n" $( $DATESECS && date +%s || echo $EPOCHSECONDS ) printf -v v2 "%(%e-%b-%Y %T)T\n" -1 case $v1 in |