Skip to content

Commit

Permalink
sort: Stop "fixing" obsolete key syntax after -- flag
Browse files Browse the repository at this point in the history
PR:		255798
Reviewed by:	markj
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D30234
  • Loading branch information
cyrilzhangfreebsd authored and markjdb committed May 13, 2021
1 parent 8b3c423 commit fa43162
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions usr.bin/sort/sort.c
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,11 @@ fix_obsolete_keys(int *argc, char **argv)

arg1 = argv[i];

if (strcmp(arg1, "--") == 0) {
/* Following arguments are treated as filenames. */
break;
}

if (strlen(arg1) > 1 && arg1[0] == '+') {
int c1, f1;
char sopts1[128];
Expand Down

0 comments on commit fa43162

Please sign in to comment.