/*
* (c) 2026, Roberto A. Foglietta <[email protected]>, GPLv2 license
*/
//config:config UNBUFFER
//config: bool "unbuffer (0.7kb)"
//config: default n
//config: help
//config: Run a command in a PTY to disable buffering.
//applet:IF_UNBUFFER(APPLET(unbuffer, BB_DIR_USR_BIN, BB_SUID_DROP))
//kbuild:lib-$(CONFIG_UNBUFFER) += unbuffer.o
//kbuild:ldflags-$(CONFIG_UNBUFFER) += -lutil
//usage:#define unbuffer_trivial_usage
//usage: "CMD [ARGS]"
//usage:#define unbuffer_full_usage "\n\n"
//usage: "Run a command in a PTY to disable buffering."
/*
size check: before vs after:
text data bss dec hex filename
1096595 16691 1656 1114942 11033e busybox
text data bss dec hex filename
1097296 16711 1656 1115663 11060f busybox
how to apply:
copy this file into in miscutils/unbuffer.c
how to activate:
make oldconfig && sed "s/^# *\(CONFIG_UNBUFFER\).*/\\1=y/" -i .config
*/
https://github.com/robang74/busybox/blob/unbuffer/miscutils/unbuffer.c
Best regards,
--
Roberto A. Foglietta
+49.176.274.75.661
+39.349.33.30.697
_______________________________________________
busybox mailing list
[email protected]
https://lists.busybox.net/mailman/listinfo/busybox