At 17.12.2007, Bob Proulx wrote:
Patrick Nagelschmidt wrote:
> 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 cannot recreate the problem. However I think your issue is because
you are forcing bc into interactive mode.
Ok, thanks guys, you are both right, the interactive mode was the
cause for this. how could i ever doubt the purity of the bash :)
Br,
Patrick