Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

[Feature Request] POSIX ls usage #15

Open
AndreiSva opened this issue Sep 7, 2021 · 7 comments
Open

[Feature Request] POSIX ls usage #15

AndreiSva opened this issue Sep 7, 2021 · 7 comments
Labels
enhancement New feature or request

Comments

@AndreiSva
Copy link

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.

@andreyorst
Copy link
Owner

Hi, can you be more specific on which tools are non-posix? It requires Perl, and ls with posix keys.

@AndreiSva
Copy link
Author

AndreiSva commented Sep 23, 2021

@andreyorst -B is not defined by POSIX, and is not present on a lot of popular alternative coreutils such as busybox.

@andreyorst
Copy link
Owner

andreyorst commented Sep 24, 2021 via email

@andreyorst
Copy link
Owner

@AndreiSva I've fixed the typo 😄. Are there any actual errors on BSD or busybox systems?

@AndreiSva
Copy link
Author

-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.

@andreyorst
Copy link
Owner

hmm -b can be worked around, I guess non-graphic characters are rare in files, though this needs more testing.

@andreyorst
Copy link
Owner

Alternatively we could gather the directory list with Perl, but this would require some reimplementation of the build_tree subroutine

@andreyorst andreyorst added the enhancement New feature or request label Oct 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants