I spent way too much time in front of gdb. More info: The bug does not reproduce on i386/gcc-4.1 (Gutsy).
The bug does reproduce with stock dash-0.5.4 on amd64/gcc-4.2 (Sid). It is not affected, and is much easier to follow within gdb, by compiling -O0. The bug is not affected by building/running under efence. Something corrupts the variable n in jobs.c:commandtext(), in between getting passed in and being used as the parameter to cmdtxt(). It's possible to turn on -DDEBUG in building dash, but you first have to disable the ps->cmd argument to TRACE() in jobs.c:commandtext(). The traces are interesting, but have not helped my investigation of this bug. - Larry -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

