On Sun, Jul 27, 2025 at 6:15 PM Ever Entrophydia <[email protected]> wrote: > package: busybox > version: 1.37 > > The 'ls' util of busybox does not support the '-q' option. When the -q option > is given, for example: > > ls -q -- / > > It would print "ls: unrecognized option: q" followed by the help message and > returns error code 1. > > '-q' is a POSIX-required option[^1], which stands for "print ? instead of > nongraphic characters", so it's reasonable to support it. > > [^1]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/ls.html > > Busybox currently always prints '?' to replace nongraphic characters, so '-q' > could be implemented to simply ignore it. > > Also, I've observed that coreutils ls outputs special characters in file > names as-is when outputting to non-terminal ttys, > whereas busybox always converts special characters to '?'. Is this difference > appropriate? The above POSIX document seems to only mention > > > Implementations may provide this option ('-q') by default if the output is > > to a terminal device
Fixed in current git, please try and let me know if something broke. _______________________________________________ busybox mailing list [email protected] https://lists.busybox.net/mailman/listinfo/busybox
