Variable passed to system contains garbage characters

2007-12-17 Thread Patrick Nagelschmidt
Configuration Information [Automatically generated, do not change]: Machine: i686 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale' -DP

Re: Variable passed to system contains garbage characters

2007-12-17 Thread Patrick Nagelschmidt
At 17.12.2007, Chet Ramey wrote: 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. No problem: $ bash -x "./test.sh" + alias 'scr=screen -R ' + '

Re: Variable passed to system contains garbage characters

2007-12-17 Thread Patrick Nagelschmidt
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