bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Testing Bash 4.0


From: Roman Rakus
Subject: Re: Testing Bash 4.0
Date: Thu, 29 Jan 2009 14:55:22 +0100
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

Roman Rakus wrote:
Chet Ramey wrote:
2 when running scripts the script works, but get constant output of TRACE: pid 7958: parse_and_execute: turned on CMD_IGNORE_RETURN from comsub_ignore_return TRACE: pid 7964: parse_and_execute: turned on CMD_IGNORE_RETURN from comsub_ignore_return TRACE: pid 7968: parse_and_execute: turned on CMD_IGNORE_RETURN from comsub_ignore_return

How do I disable that?

It's a debugging message so I can get an idea of how often it happens. You
have to edit it out of the source: builtins/evalstring.c:271.

Chet

There is more debug outputs:

When I run something like:

$ find /usr | while read x; do ls "$x"; done >/dev/null

I start getting lots of bash debug output on the terminal:

TRACE: pid 24674: realloc_jobs_list: resize jobs list from 128 to 136
TRACE: pid 24674: realloc_jobs_list: j_lastj changed from 127 to 127
TRACE: pid 24674: realloc_jobs_list: j_njobs changed from 128 to 128
TRACE: pid 24674: realloc_jobs_list: js.j_ndead 128 js.c_reaped 128
TRACE: pid 24674: realloc_jobs_list: reset js.j_current (-1) and js.j_previous
(-1)
TRACE: pid 24674: compact_jobs_list: returning 128
TRACE: pid 24674: realloc_jobs_list: resize jobs list from 136 to 144
TRACE: pid 24674: realloc_jobs_list: j_lastj changed from 135 to 135
TRACE: pid 24674: realloc_jobs_list: j_njobs changed from 136 to 136
TRACE: pid 24674: realloc_jobs_list: js.j_ndead 136 js.c_reaped 136
TRACE: pid 24674: realloc_jobs_list: reset js.j_current (-1) and js.j_previous
(-1)

...


RR


Ok, it was because enabled DEBUG. So to avoid messages like "TRACE: pid 7968: parse_and_execute: turned on CMD_IGNORE_RETURN from comsub_ignore_return" the best is to get ifdefed builtins/evalstring.c:271, I think.
RR




reply via email to

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