diff options
author | Ron Yorston <rmy@pobox.com> | 2022-06-27 11:23:39 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2022-06-27 11:23:39 +0100 |
commit | b0f279a48f5f7e57b6f6e941e4b59e9a1bc54548 (patch) | |
tree | 86430f2929d8e3eb162bcb83c512bf8a0fffe322 /shell/ash.c | |
parent | 164a4253b1b16f3923b175f425074ef2d1b04377 (diff) | |
parent | 2617a5e4c600b4577b2c18f794701276e55da43b (diff) | |
download | busybox-w32-b0f279a48f5f7e57b6f6e941e4b59e9a1bc54548.tar.gz busybox-w32-b0f279a48f5f7e57b6f6e941e4b59e9a1bc54548.tar.bz2 busybox-w32-b0f279a48f5f7e57b6f6e941e4b59e9a1bc54548.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'shell/ash.c')
-rw-r--r-- | shell/ash.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/shell/ash.c b/shell/ash.c index b34ed67a7..28c7fe2db 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -10611,7 +10611,7 @@ evalpipe(union node *n, int flags) | |||
10611 | } | 10611 | } |
10612 | 10612 | ||
10613 | /* setinteractive needs this forward reference */ | 10613 | /* setinteractive needs this forward reference */ |
10614 | #if EDITING_HAS_get_exe_name | 10614 | #if ENABLE_FEATURE_EDITING |
10615 | static const char *get_builtin_name(int i) FAST_FUNC; | 10615 | static const char *get_builtin_name(int i) FAST_FUNC; |
10616 | #endif | 10616 | #endif |
10617 | 10617 | ||
@@ -10648,9 +10648,8 @@ setinteractive(int on) | |||
10648 | #if ENABLE_FEATURE_EDITING | 10648 | #if ENABLE_FEATURE_EDITING |
10649 | if (!line_input_state) { | 10649 | if (!line_input_state) { |
10650 | line_input_state = new_line_input_t(FOR_SHELL | WITH_PATH_LOOKUP); | 10650 | line_input_state = new_line_input_t(FOR_SHELL | WITH_PATH_LOOKUP); |
10651 | # if EDITING_HAS_get_exe_name | ||
10652 | line_input_state->get_exe_name = get_builtin_name; | 10651 | line_input_state->get_exe_name = get_builtin_name; |
10653 | # endif | 10652 | line_input_state->sh_get_var = lookupvar; |
10654 | } | 10653 | } |
10655 | #endif | 10654 | #endif |
10656 | } | 10655 | } |
@@ -11157,7 +11156,7 @@ find_builtin(const char *name) | |||
11157 | return bp; | 11156 | return bp; |
11158 | } | 11157 | } |
11159 | 11158 | ||
11160 | #if EDITING_HAS_get_exe_name | 11159 | #if ENABLE_FEATURE_EDITING |
11161 | static const char * FAST_FUNC | 11160 | static const char * FAST_FUNC |
11162 | get_builtin_name(int i) | 11161 | get_builtin_name(int i) |
11163 | { | 11162 | { |