sort: apply -b only to "custom" keys

This commit is contained in:
Jakob Kramer 2015-04-05 20:31:28 +02:00 committed by sin
parent 2d9d224a1b
commit bddb7200b8

3
sort.c
View File

@ -283,8 +283,9 @@ main(int argc, char *argv[])
usage();
} ARGEND;
/* -b shall only apply to custom key definitions */
if (!head && global_flags)
addkeydef("1", global_flags);
addkeydef("1", global_flags & ~(MOD_STARTB|MOD_ENDB));
addkeydef("1", global_flags & MOD_R);
if (!argc) {