Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Missing "#if defined (JOB_CONTROL)" line in execute_cmd.c.

3 views
Skip to first unread message

Brooks Moses

unread,
Jun 17, 2013, 11:44:00 AM6/17/13
to bug-...@gnu.org
Configuration Information:
OS: linux-gnu
Compiler: gcc 4.8
Bash Version: 4.2
Release Status: release

Description, Fix:
I was just compiling bash and (due, I think, to an error on my part)
ended up with a configuration for which JOB_CONTROL was not defined.
As a result, I uncovered two bugs:

The actual blocker is that line 2205 of execute_cmd.c uses the
"job_control" variable, but is not properly guarded with an "#if
defined (JOB_CONTROL)" block. Thus, the compilation aborts with an
undefined-variable error.

The other bug is that this file was not compiled when I ran "make"; it
only got compiled when I ran "make install".

Thanks,
- Brooks

Brooks Moses

unread,
Jun 17, 2013, 11:53:56 AM6/17/13
to bug-...@gnu.org
On Mon, Jun 17, 2013 at 8:44 AM, Brooks Moses <bmo...@google.com> wrote:
> The actual blocker is that line 2205 of execute_cmd.c uses the
> "job_control" variable, but is not properly guarded with an "#if
> defined (JOB_CONTROL)" block. Thus, the compilation aborts with an
> undefined-variable error.

With more investigation, I find that this is a known issue and will be
fixed in 4.3:
http://lists.gnu.org/archive/html/bug-bash/2011-09/msg00039.html

Sorry for the noise. (When is bash 4.3 expected?)

- Brooks

DJ Mills

unread,
Jun 19, 2013, 11:54:12 AM6/19/13
to Brooks Moses, bug-bash
On Mon, Jun 17, 2013 at 11:53 AM, Brooks Moses <bmo...@google.com> wrote:

>
> (When is bash 4.3 expected?)
>
> - Brooks
>
>
Whenever it's ready.

Chet Ramey

unread,
Jun 23, 2013, 4:31:23 PM6/23/13
to Brooks Moses, DJ Mills, bug-bash, chet....@case.edu
The version in the devel branch is already the bash-4.3-beta code. I have
to do the release engineering. After that we'll see how the testing goes.

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU ch...@case.edu http://cnswww.cns.cwru.edu/~chet/

0 new messages