[PATCH 2/3] sort: apply -b only to "custom" keys

From: Jakob Kramer <jakob.kramer_AT_gmx.de>
Date: Sun, 5 Apr 2015 20:31:28 +0200

---
 sort.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sort.c b/sort.c
index e5c3d21..c2beb72 100644
--- a/sort.c
+++ b/sort.c
_AT_@ -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) {
-- 
1.9.1
--------------030502090401040306020509--
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 05 2015 - 20:48:15 CEST