wok view busybox/stuff/busybox-1.30-cmdline.u @ rev 22042

gcc83-lib-base: do NOT provide gcc-lib-base
Currently BOTH gcc-lib-base and gcc83-lib-base are installed on my SliTaz system. So, with the current (and longstanding) tazpkg limitations I can't update just gcc-lib-base: tazpkg always updates gcc83-lib-base for me instead. Now I can't run Firefox, Vivaldi, Chrome, etc. I think because of gcc-lib-base, but I not sure 1bsolutely.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 22 12:55:54 2019 +0300 (2019-10-22)
parents
children
line source
1 --- busybox-1.30/libbb/appletlib.c
2 +++ busybox-1.30/libbb/appletlib.c
3 @@ -118,9 +118,16 @@
5 #endif /* FEATURE_COMPRESS_USAGE */
7 -
8 +static char **bb_argv;
9 void FAST_FUNC bb_show_usage(void)
10 {
11 + full_write2_str("\nCommand line: ");
12 + while (*bb_argv) {
13 + full_write2_str(*bb_argv++);
14 + full_write2_str(" ");
15 + }
16 + full_write2_str("\n\n");
17 +
18 if (ENABLE_SHOW_USAGE) {
19 #ifdef SINGLE_APPLET_STR
20 /* Imagine that this applet is "true". Dont suck in printf! */
21 @@ -819,6 +826,7 @@
22 # endif
23 int busybox_main(int argc UNUSED_PARAM, char **argv)
24 {
25 + bb_argv = argv;
26 if (!argv[1]) {
27 /* Called without arguments */
28 const char *a;
29 @@ -1032,6 +1040,7 @@
30 int main(int argc UNUSED_PARAM, char **argv)
31 #endif
32 {
33 + bb_argv = argv;
34 #if 0
35 /* TODO: find a use for a block of memory between end of .bss
36 * and end of page. For example, I'm getting "_end:0x812e698 2408 bytes"