aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-04-11 13:22:38 +0100
committerRon Yorston <rmy@pobox.com>2023-04-11 13:27:24 +0100
commit36450cffc837bf934f875643bf5faca69599d8fe (patch)
treeccf822eba1af02c4f16a00c75b363518a6b187a3
parent3ea59e15db1edc319a56495021b3d1e58dd49f30 (diff)
downloadbusybox-w32-36450cffc837bf934f875643bf5faca69599d8fe.tar.gz
busybox-w32-36450cffc837bf934f875643bf5faca69599d8fe.tar.bz2
busybox-w32-36450cffc837bf934f875643bf5faca69599d8fe.zip
ash: fix tab completion
The initial index for the command and alias tables was incorrect. Change since 3165054d2: function old new delta ash_command_name - 155 +155 hush_command_name - 110 +110 complete_cmd_dir_file 876 880 +4 ash_builtin_name 17 - -17 hush_builtin_name 38 - -38 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 1/0 up/down: 269/-55) Total: 214 bytes (GitHub commit #301) Signed-off-by: Ron Yorston <rmy@pobox.com>
-rw-r--r--shell/ash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 9bb8fd805..e1c6f95ea 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -10298,7 +10298,7 @@ ash_command_name(struct exe_state *e)
10298 if (index < ARRAY_SIZE(builtintab)) 10298 if (index < ARRAY_SIZE(builtintab))
10299 return builtintab[e->e_index++].name + 1; 10299 return builtintab[e->e_index++].name + 1;
10300 e->e_type++; 10300 e->e_type++;
10301 index = 0; 10301 index = -1;
10302 /* e->e_ptr = NULL; */ 10302 /* e->e_ptr = NULL; */
10303 /* fall through */ 10303 /* fall through */
10304 case 1: 10304 case 1:
@@ -10318,7 +10318,7 @@ ash_command_name(struct exe_state *e)
10318 } 10318 }
10319# if ENABLE_ASH_ALIAS 10319# if ENABLE_ASH_ALIAS
10320 e->e_type++; 10320 e->e_type++;
10321 index = 0; 10321 index = -1;
10322 e->e_ptr = NULL; 10322 e->e_ptr = NULL;
10323 /* fall through */ 10323 /* fall through */
10324 case 2: 10324 case 2: