← Commit list

b59b00323

Ron Yorston via busybox
Ron Yorston via busybox
2026-02-28
SUCCESS Duration: 143s

Subject

ash: fix help builtin and tab completion of builtins

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0
gcc -Wp,-MD,applets/.usage.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer      -Iinclude -Iinclude -o applets/usage applets/usage.c

Build Log

(log yok)

Commit Diff GitHub →

shell/ash.c+2 -2
@@ -10855,7 +10855,7 @@ ash_command_name(int i)
int n;
if (/*i >= 0 &&*/ i < ARRAY_SIZE(builtintab))
- return builtintab[i].name + 1;
+ return builtintab[i].name;
i -= ARRAY_SIZE(builtintab);
for (n = 0; n < CMDTABLESIZE; n++) {
@@ -14395,7 +14395,7 @@ helpcmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
"------------------\n");
for (col = 0, i = 0; i < ARRAY_SIZE(builtintab); i++) {
col += out1fmt("%c%s", ((col == 0) ? '\t' : ' '),
- builtintab[i].name + 1);
+ builtintab[i].name);
if (col > 60) {
out1fmt("\n");
col = 0;