helpThe GNU Bourne-Again SHell - Support: sr #108283, Problem in execute_cmd.c if...


sr #108283: Problem in execute_cmd.c if configuration not COND_COMMAND and (DPAREN_ARITHMETIC or ARITH_FOR_COMMAND) is set.

Submitted by:  Flávio Medeiros <flaviommedeiros>
Submitted on:  Sun 14 Apr 2013 04:39:06 PM UTC  
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  Mac OS

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sun 14 Apr 2013 04:39:06 PM UTC, original submission:

Problem in execute_cmd.c if configuration not COND_COMMAND and (DPAREN_ARITHMETIC or ARITH_FOR_COMMAND) is set. In this case, we can have a preprocessed code with an ELSE IF statement without an IF statement in function executing_line_number. The code part is shown bellow:

#if defined (COND_COMMAND)
if (currently_executing_command->type == cm_cond)
return currently_executing_command->value.Cond->line;
else if (currently_executing_command->type == cm_arith)
return currently_executing_command->value.Arith->line;
#if defined (ARITH_FOR_COMMAND)
else if (currently_executing_command->type == cm_arith_for)
return currently_executing_command->value.ArithFor->line;

The correction is attached in file (execute_cmd-modified-flaviomedeiros.c).

Flávio Medeiros <flaviommedeiros>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #27870:  execute_cmd-modified-flaviomedeiros.c added by flaviommedeiros (139KiB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by chet (Updated the item)
  • -email is unavailable- added by flaviommedeiros (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    Fri 13 Nov 2015 02:45:55 AM UTC chet StatusNone => Done
    Sun 14 Apr 2013 04:39:06 PM UTC flaviommedeiros Attached File- => Added execute_cmd-modified-flaviomedeiros.c, #27870

    Back to the top

    Powered by Savane 3.3