sort: apply -b only to "custom" keys
This commit is contained in:
parent
2d9d224a1b
commit
bddb7200b8
3
sort.c
3
sort.c
|
@ -283,8 +283,9 @@ main(int argc, char *argv[])
|
||||||
usage();
|
usage();
|
||||||
} ARGEND;
|
} ARGEND;
|
||||||
|
|
||||||
|
/* -b shall only apply to custom key definitions */
|
||||||
if (!head && global_flags)
|
if (!head && global_flags)
|
||||||
addkeydef("1", global_flags);
|
addkeydef("1", global_flags & ~(MOD_STARTB|MOD_ENDB));
|
||||||
addkeydef("1", global_flags & MOD_R);
|
addkeydef("1", global_flags & MOD_R);
|
||||||
|
|
||||||
if (!argc) {
|
if (!argc) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user