sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit bddb7200b8e410599c19dfc5ca5975d5e6f749db
parent 2d9d224a1b69231edabfa014f738ed2c73dd6eb3
Author: Jakob Kramer <jakob.kramer@gmx.de>
Date:   Sun,  5 Apr 2015 20:31:28 +0200

sort: apply -b only to "custom" keys

Diffstat:
Msort.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sort.c b/sort.c @@ -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) {