aboutsummaryrefslogtreecommitdiff
path: root/coreutils/sort.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/sort.c')
-rw-r--r--coreutils/sort.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/coreutils/sort.c b/coreutils/sort.c
index 9139d9f47..34a41999b 100644
--- a/coreutils/sort.c
+++ b/coreutils/sort.c
@@ -73,7 +73,7 @@
73*/ 73*/
74 74
75/* These are sort types */ 75/* These are sort types */
76static const char OPT_STR[] ALIGN1 = "ngMucszbrdfimS:T:o:k:t:"; 76static const char OPT_STR[] ALIGN1 = "ngMucszbrdfimS:T:o:k:*t:";
77enum { 77enum {
78 FLAG_n = 1, /* Numeric sort */ 78 FLAG_n = 1, /* Numeric sort */
79 FLAG_g = 2, /* Sort using strtod() */ 79 FLAG_g = 2, /* Sort using strtod() */
@@ -358,8 +358,7 @@ int sort_main(int argc UNUSED_PARAM, char **argv)
358 358
359 /* Parse command line options */ 359 /* Parse command line options */
360 /* -o and -t can be given at most once */ 360 /* -o and -t can be given at most once */
361 opt_complementary = "o--o:t--t:" /* -t, -o: at most one of each */ 361 opt_complementary = "o--o:t--t"; /* -t, -o: at most one of each */
362 "k::"; /* -k takes list */
363 opts = getopt32(argv, OPT_STR, &str_ignored, &str_ignored, &str_o, &lst_k, &str_t); 362 opts = getopt32(argv, OPT_STR, &str_ignored, &str_ignored, &str_o, &lst_k, &str_t);
364 /* global b strips leading and trailing spaces */ 363 /* global b strips leading and trailing spaces */
365 if (opts & FLAG_b) 364 if (opts & FLAG_b)