Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Use shorthand flags for BusyBox sort compatibility #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Sickday
Copy link

@Sickday Sickday commented Aug 4, 2024

The GNU sort program explicitly supports both the long --numeric-sort and --reverse flags, and the shorthand -n and -r flags. However, BusyBox sort only supports shorthand -n and -r flags. This changes should allow for compatibility with both sort programs so that prsync runs on distributions with BusyBox such as Alpine Linux.

The GNU `sort` program [explicitly supports](https://www.gnu.org/software/coreutils/manual/html_node/sort-invocation.html) both the extended `--numeric-sort` and `--reverse` flags, and the shorthand `-n` and `-r` flags. However, BusyBox `sort` only supports shorthand `-n` and `-r` flags. This changes should allow for compatibility with both sort programs so that `prsync` runs on distributions with BusyBox such as Alpine Linux.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant