kaktree
kaktree copied to clipboard
[Feature Request] POSIX ls usage
Right now kaktree needs a bunch of non-POSIX ls command line options to work. It would be great to POSIX-fy the ls usage in order to enable the plugin to be used on busybox or BSD systems.
Hi, can you be more specific on which tools are non-posix? It requires Perl, and ls with posix keys.
@andreyorst -B is not defined by POSIX, and is not present on a lot of popular alternative coreutils such as busybox.
kaktree doesn't require it, and doesn't use it. It seems like a typo in readme.
@AndreiSva I've fixed the typo :smile:. Are there any actual errors on BSD or busybox systems?
-b is still not defined by POSIX and doesn't work on busybox ls or OpenBSD ls, couldn't test on other coreutils. You can see a list of all portable ls options here.
hmm -b can be worked around, I guess non-graphic characters are rare in files, though this needs more testing.
Alternatively we could gather the directory list with Perl, but this would require some reimplementation of the build_tree subroutine