Skip to content

feat: Use shorthand flags for BusyBox sort compatibility#12

Open
Sickday wants to merge 1 commit intonathanhaigh:mainfrom
Sickday:patch-1
Open

feat: Use shorthand flags for BusyBox sort compatibility#12
Sickday wants to merge 1 commit intonathanhaigh:mainfrom
Sickday:patch-1

Conversation

@Sickday
Copy link
Copy Markdown

@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