Machine Type: i686-redhat-linux-gnu
Bash Version: 3.2
Patch Level: 33
Release Status: release
Description:
The script below fails on my box with the following output:
1197676800
date: invalid date `1970-01-01 \033[?1034h1197676800 sec'
So for some reason the value passed to date got a nasty prefix.
I guess this could be charset-related, so here's my locale
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=
Repeat-By:
executing this script
#!/bin/bash
let "STEP=86400"
let "CALCTIME=`date +%s`"