aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2026-02-12 12:50:11 +0000
committerRon Yorston <rmy@pobox.com>2026-02-12 12:58:38 +0000
commitde7b34e8c779d8baca5abba1394284e0b6e87dc6 (patch)
tree6cad7836abe5610f97c32d9b5d395f5e9c34929d /shell
parent7e0c303a8804608e3c11151655d270a63bfffcfa (diff)
parent8424dc436a66a224b73429675a481d074fc2f8dc (diff)
downloadbusybox-w32-de7b34e8c779d8baca5abba1394284e0b6e87dc6.tar.gz
busybox-w32-de7b34e8c779d8baca5abba1394284e0b6e87dc6.tar.bz2
busybox-w32-de7b34e8c779d8baca5abba1394284e0b6e87dc6.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c2
-rw-r--r--shell/hush.c5
2 files changed, 2 insertions, 5 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 43f92bfae..bb8ac53d6 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -1384,7 +1384,7 @@ static void dbg_show_dirtymem(const char *msg)
1384 p = buf; 1384 p = buf;
1385 for (;;) { 1385 for (;;) {
1386 char *e = strchrnul(p, '\n'); 1386 char *e = strchrnul(p, '\n');
1387 if (strncmp(p, "Private_Dirty:", 14) == 0) { 1387 if (is_prefixed_with(p, "Private_Dirty:")) {
1388 p = skip_whitespace(p + 14); 1388 p = skip_whitespace(p + 14);
1389 bb_error_msg("%s:%.*s", msg, (int)(e - p), p); 1389 bb_error_msg("%s:%.*s", msg, (int)(e - p), p);
1390 break; 1390 break;
diff --git a/shell/hush.c b/shell/hush.c
index da0db7948..23e7f512f 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -2941,12 +2941,9 @@ static void i_prepend_to_alias_buffer(struct in_str *i, char *prepend, char ch)
2941 * a 2941 * a
2942 * ^^^ runs "echo A: c" 2942 * ^^^ runs "echo A: c"
2943 */ 2943 */
2944 char *old = i->albuf;
2945 //bb_error_msg("before'%s' p'%s'", i->albuf, i->p); 2944 //bb_error_msg("before'%s' p'%s'", i->albuf, i->p);
2946 i->albuf = xasprintf("%s%c%s", prepend, ch, i->p); 2945 i->p = xasprintf_inplace(i->albuf, "%s%c%s", prepend, ch, i->p);
2947 i->p = i->albuf;
2948 //bb_error_msg("after'%s' p'%s'", i->albuf, i->p); 2946 //bb_error_msg("after'%s' p'%s'", i->albuf, i->p);
2949 free(old);
2950 return; 2947 return;
2951 } 2948 }
2952 i->saved_ibuf = i->p; 2949 i->saved_ibuf = i->p;