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: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: Done
Privacy: PublicAssigned to: None
Open/Closed: OpenOperating System: Mac OS

Add a New Comment (Rich MarkupRich 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 File(s):

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


Depends on the following items: None found

Items that depend on this one: None found


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

    Do you think this task is very important?
    If so, you can click here to 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 UTCchetStatusNone=>Done
    Sun 14 Apr 2013 04:39:06 PM UTCflaviommedeirosAttached File-=>Added execute_cmd-modified-flaviomedeiros.c, #27870

    Back to the top

    Powered by Savane 3.1-cleanup