[git commit] bc: tweak comment

Denys Vlasenko vda.linux at googlemail.com
Tue Dec 11 20:21:14 UTC 2018


commit: https://git.busybox.net/busybox/commit/?id=2c6f563216da4fd38626b59cbd01774bbc0e2a71
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 miscutils/bc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/miscutils/bc.c b/miscutils/bc.c
index 9f05cad0c..143bb64b1 100644
--- a/miscutils/bc.c
+++ b/miscutils/bc.c
@@ -5586,8 +5586,9 @@ static char *bc_program_name(char *code, size_t *bgn)
 static void bc_program_printString(const char *str)
 {
 #if ENABLE_DC
-	// Huh? Example when this happens?
 	if (!str[0]) {
+		// Example: echo '[]ap' | dc
+		// should print two bytes: 0x00, 0x0A
 		bb_putchar('\0');
 		return;
 	}


More information about the busybox-cvs mailing list