aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c
index ceb8cbb0a..8e0022531 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -2218,7 +2218,8 @@ static int set_local_var(char *str, unsigned flags)
2218 if (name_len == 4 && cur->varstr[0] == 'P' && cur->varstr[1] == 'S') 2218 if (name_len == 4 && cur->varstr[0] == 'P' && cur->varstr[1] == 'S')
2219 cmdedit_update_prompt(); 2219 cmdedit_update_prompt();
2220#if ENABLE_HUSH_GETOPTS 2220#if ENABLE_HUSH_GETOPTS
2221 if (strncmp(cur->varstr, "OPTIND=", 7) == 0) 2221 /* defoptindvar is a "OPTIND=..." constant string */
2222 if (strncmp(cur->varstr, defoptindvar, 7) == 0)
2222 G.getopt_count = 0; 2223 G.getopt_count = 0;
2223#endif 2224#endif
2224 if (cur->flg_export) { 2225 if (cur->flg_export) {