bug-bash
[Top][All Lists]
Advanced

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

bash-2.05b/execute_cmd.c, --enable-minimal-config


From: Toomas Rosin
Subject: bash-2.05b/execute_cmd.c, --enable-minimal-config
Date: Thu, 15 Aug 2002 12:52:46 +0200 (EET)

Dear Sirs,

   execute_cmd.c: In function `executing_line_number':
   execute_cmd.c:290: union has no member named `Cond'
   execute_cmd.c:292: union has no member named `Arith'
   execute_cmd.c:294: union has no member named `ArithFor'

Fix:

--- bash-2.05b/execute_cmd.c.orig       Thu Aug 15 12:25:21 2002
+++ bash-2.05b/execute_cmd.c    Thu Aug 15 12:27:11 2002
@@ -286,12 +286,18 @@
     {
       if (currently_executing_command->type == cm_simple)
        return currently_executing_command->value.Simple->line;
+#if defined (COND_COMMAND)
       else if (currently_executing_command->type == cm_cond)
        return currently_executing_command->value.Cond->line;
+#endif
+#if defined (DPAREN_ARITHMETIC)
       else if (currently_executing_command->type == cm_arith)
        return currently_executing_command->value.Arith->line;
+#endif
+#if defined (ARITH_FOR_COMMAND)
       else if (currently_executing_command->type == cm_arith_for)
        return currently_executing_command->value.ArithFor->line;
+#endif
       else
        return line_number;
     }

Have a nice day,
Toomas.




reply via email to

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