bug-bash
[Top][All Lists]
Advanced

[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 13:41:23 -0500
User-agent: Thunderbird 2.0.0.9 (Macintosh/20071031)

Patrick Nagelschmidt wrote:
> 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 can't reproduce this on fedora core 6, which is the closest Linux
box.  I suspect this is prompt string or PROMPT_COMMAND related, so a
transcript of running this script with `bash -x' would help.

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]