2021-02-08 06:23:31 +00:00
|
|
|
SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
2021-02-03 06:03:25 +00:00
|
|
|
We don't actually want any of these things, which should really be hidden
|
|
|
|
behind the ifdefs given here to disable them when they are not being
|
|
|
|
used (as we do).
|
|
|
|
|
|
|
|
--- execute_cmd.c 2021-01-15 09:38:55.730307635 +1100
|
2021-01-15 01:19:43 +00:00
|
|
|
+++ execute_cmd.c 2021-01-15 09:43:41.046896754 +1100
|
|
|
|
@@ -286,12 +286,18 @@
|
|
|
|
{
|
|
|
|
if (currently_executing_command->type == cm_simple)
|
|
|
|
return currently_executing_command->value.Simple->line;
|
|
|
|
+#ifdef COND_COMMAND
|
|
|
|
else if (currently_executing_command->type == cm_cond)
|
|
|
|
return currently_executing_command->value.Cond->line;
|
|
|
|
+#endif
|
|
|
|
+#ifdef DPAREN_ARITHMETIC
|
|
|
|
else if (currently_executing_command->type == cm_arith)
|
|
|
|
return currently_executing_command->value.Arith->line;
|
|
|
|
+#endif
|
|
|
|
+#ifdef ARITH_FOR_COMMAND
|
|
|
|
else if (currently_executing_command->type == cm_arith_for)
|
|
|
|
return currently_executing_command->value.ArithFor->line;
|
|
|
|
+#endif
|
|
|
|
else
|
|
|
|
return line_number;
|
|
|
|
}
|