diff options
-rw-r--r-- | shell/ash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index 3e3193eba..a8ba9c4ef 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -434,6 +434,7 @@ struct globals_misc { | |||
434 | int rootpid; /* pid of main shell */ | 434 | int rootpid; /* pid of main shell */ |
435 | /* shell level: 0 for the main shell, 1 for its children, and so on */ | 435 | /* shell level: 0 for the main shell, 1 for its children, and so on */ |
436 | int shlvl; | 436 | int shlvl; |
437 | int loopnest; /* current loop nesting level */ | ||
437 | #define rootshell (!shlvl) | 438 | #define rootshell (!shlvl) |
438 | int errlinno; | 439 | int errlinno; |
439 | 440 | ||
@@ -522,6 +523,7 @@ extern struct globals_misc *BB_GLOBAL_CONST ash_ptr_to_globals_misc; | |||
522 | #define rootpid (G_misc.rootpid ) | 523 | #define rootpid (G_misc.rootpid ) |
523 | #define shlvl (G_misc.shlvl ) | 524 | #define shlvl (G_misc.shlvl ) |
524 | #define errlinno (G_misc.errlinno ) | 525 | #define errlinno (G_misc.errlinno ) |
526 | #define loopnest (G_misc.loopnest ) | ||
525 | #define minusc (G_misc.minusc ) | 527 | #define minusc (G_misc.minusc ) |
526 | #define curdir (G_misc.curdir ) | 528 | #define curdir (G_misc.curdir ) |
527 | #define physdir (G_misc.physdir ) | 529 | #define physdir (G_misc.physdir ) |
@@ -9369,7 +9371,6 @@ defun(union node *func) | |||
9369 | #define SKIPFUNC (1 << 2) | 9371 | #define SKIPFUNC (1 << 2) |
9370 | static smallint evalskip; /* set to SKIPxxx if we are skipping commands */ | 9372 | static smallint evalskip; /* set to SKIPxxx if we are skipping commands */ |
9371 | static int skipcount; /* number of levels to skip */ | 9373 | static int skipcount; /* number of levels to skip */ |
9372 | static int loopnest; /* current loop nesting level */ | ||
9373 | static int funcline; /* starting line number of current function, or 0 if not in a function */ | 9374 | static int funcline; /* starting line number of current function, or 0 if not in a function */ |
9374 | 9375 | ||
9375 | /* Forward decl way out to parsing code - dotrap needs it */ | 9376 | /* Forward decl way out to parsing code - dotrap needs it */ |