[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Variable passed to system contains garbage characters
From: |
Chet Ramey |
Subject: |
Re: Variable passed to system contains garbage characters |
Date: |
Mon, 17 Dec 2007 15:47:41 -0500 |
User-agent: |
Thunderbird 2.0.0.9 (Macintosh/20071031) |
Andreas Schwab wrote:
> Patrick Nagelschmidt <dto@gmx.net> writes:
>
>> ++ echo '1197919330 - (1197919330 % 86400) - 86400'
>> ++ bc -i
>
> This is bogus. Why are you forcing bc in interactive mode?
I'm assuming this is the problem, since bc -i uses readline, and the
bogus sequence looks suspiciously like a terminal initialization
sequence.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Live Strong. No day but today.
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/