Skip to content

sort: accept blanks and a + before key field numbers - #17075

Open
binhvq wants to merge 1 commit into
uutils:mainfrom
binhvq:sort-key-plus-sign
Open

binhvq wants to merge 1 commit into
uutils:mainfrom
binhvq:sort-key-plus-sign

Conversation

@binhvq

@binhvq binhvq commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

A key such as -k+2, --key=+2 or -k2,+2.+1 was rejected with "invalid count at start of '+2'", and so was a field number after blanks. parse_field_count now skips leading blanks and one + before the digits, so -k++2 and -k'+ 2' are still errors.

Closes #17074

A key such as -k+2, --key=+2 or -k2,+2.+1 was rejected with "invalid count at start of '+2'", and so was a field number after blanks. Skip leading blanks and one '+' before each number of the key spec.

This branch has not been deployed

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

sort: a + or blanks before a key field number are rejected

1 participant