aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 13200da0c..6a4b8e273 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -10606,7 +10606,7 @@ evalpipe(union node *n, int flags)
10606} 10606}
10607 10607
10608/* setinteractive needs this forward reference */ 10608/* setinteractive needs this forward reference */
10609#if ENABLE_FEATURE_EDITING 10609#if ENABLE_FEATURE_TAB_COMPLETION
10610static const char *get_builtin_name(int i) FAST_FUNC; 10610static const char *get_builtin_name(int i) FAST_FUNC;
10611#endif 10611#endif
10612 10612
@@ -10643,8 +10643,12 @@ setinteractive(int on)
10643#if ENABLE_FEATURE_EDITING 10643#if ENABLE_FEATURE_EDITING
10644 if (!line_input_state) { 10644 if (!line_input_state) {
10645 line_input_state = new_line_input_t(FOR_SHELL | WITH_PATH_LOOKUP); 10645 line_input_state = new_line_input_t(FOR_SHELL | WITH_PATH_LOOKUP);
10646# if ENABLE_FEATURE_TAB_COMPLETION
10646 line_input_state->get_exe_name = get_builtin_name; 10647 line_input_state->get_exe_name = get_builtin_name;
10648# endif
10649# if EDITING_HAS_sh_get_var
10647 line_input_state->sh_get_var = lookupvar; 10650 line_input_state->sh_get_var = lookupvar;
10651# endif
10648 } 10652 }
10649#endif 10653#endif
10650 } 10654 }
@@ -10888,7 +10892,7 @@ mklocal(char *name, int flags)
10888 setvareq(name, flags); 10892 setvareq(name, flags);
10889 else 10893 else
10890 /* "local VAR" unsets VAR: */ 10894 /* "local VAR" unsets VAR: */
10891 setvar0(name, NULL); 10895 unsetvar(name);
10892 } 10896 }
10893 } 10897 }
10894 lvp->vp = vp; 10898 lvp->vp = vp;
@@ -11157,7 +11161,7 @@ find_builtin(const char *name)
11157 return bp; 11161 return bp;
11158} 11162}
11159 11163
11160#if ENABLE_FEATURE_EDITING 11164#if ENABLE_FEATURE_TAB_COMPLETION
11161static const char * FAST_FUNC 11165static const char * FAST_FUNC
11162get_builtin_name(int i) 11166get_builtin_name(int i)
11163{ 11167{