|
From: | Patrick Nagelschmidt |
Subject: | Re: Variable passed to system contains garbage characters |
Date: | Mon, 17 Dec 2007 22:19:42 +0100 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |