@@ -539,7 +539,7 @@ static void set_this_thread_affinity_and_priority(size_t cpu)
539
539
540
540
(void)SetThreadAffinityMask(GetCurrentThread(), DWORD_PTR(1) << cpu);
541
541
542
- #elif defined(__APPLE__)
542
+ #elif defined(__APPLE__) && defined(HAVE_PTHREAD_SET_QOS_CLASS_SELF_NP)
543
543
544
544
(void)pthread_set_qos_class_self_np(QOS_CLASS_USER_INITIATED, 0);
545
545
@@ -5646,6 +5646,8 @@ void options(std::list<std::pair<CNF::PATTERN,const char*>>& pattern_args, int a
5646
5646
;
5647
5647
else if (strcmp(arg, "no-confirm") == 0)
5648
5648
flag_confirm = false;
5649
+ else if (strcmp(arg, "no-count") == 0)
5650
+ flag_count = false;
5649
5651
else if (strcmp(arg, "no-decompress") == 0)
5650
5652
flag_decompress = false;
5651
5653
else if (strcmp(arg, "no-dereference") == 0)
@@ -5658,6 +5660,8 @@ void options(std::list<std::pair<CNF::PATTERN,const char*>>& pattern_args, int a
5658
5660
flag_empty = false;
5659
5661
else if (strcmp(arg, "no-filename") == 0)
5660
5662
flag_no_filename = true;
5663
+ else if (strcmp(arg, "no-files-with-matches") == 0)
5664
+ flag_files_with_matches = false;
5661
5665
else if (strcmp(arg, "no-filter") == 0)
5662
5666
flag_filter.clear();
5663
5667
else if (strcmp(arg, "no-glob-ignore-case") == 0)
@@ -5717,7 +5721,7 @@ void options(std::list<std::pair<CNF::PATTERN,const char*>>& pattern_args, int a
5717
5721
else if (strcmp(arg, "neg-regexp") == 0)
5718
5722
usage("missing argument for --", arg);
5719
5723
else
5720
- usage("invalid option --", arg, "--neg-regexp=, --not, --no-any-line, --no-ascii, --no-binary, --no-bool, --no-break, --no-byte-offset, --no-color, --no-config, --no-confirm, --no-decompress, --no-dereference, --no-dereference-files, --no-dotall, --no-empty, --no-filename, --no-filter, --no-glob-ignore-case, --no-group-separator, --no-heading, --no-hidden, --no-hyperlink, --no-ignore-binary, --no-ignore-case, --no-ignore-files, --no-index, --no-initial-tab, --no-invert-match, --no-line-number, --no-only-line-number, --no-only-matching, --no-messages, --no-mmap, --no-pager, --no-pretty, --no-smart-case, --no-sort, --no-split, --no-stats, --no-tree, --no-ungroup, --no-view or --null");
5724
+ usage("invalid option --", arg, "--neg-regexp=, --not, --no-any-line, --no-ascii, --no-binary, --no-bool, --no-break, --no-byte-offset, --no-color, --no-config, --no-confirm, --no-count, --no- decompress, --no-dereference, --no-dereference-files, --no-dotall, --no-empty, --no-filename, --no-files-with-matches , --no-filter, --no-glob-ignore-case, --no-group-separator, --no-heading, --no-hidden, --no-hyperlink, --no-ignore-binary, --no-ignore-case, --no-ignore-files, --no-index, --no-initial-tab, --no-invert-match, --no-line-number, --no-only-line-number, --no-only-matching, --no-messages, --no-mmap, --no-pager, --no-pretty, --no-smart-case, --no-sort, --no-split, --no-stats, --no-tree, --no-ungroup, --no-view or --null");
5721
5725
break;
5722
5726
5723
5727
case 'o':
@@ -8321,7 +8325,11 @@ void ugrep()
8321
8325
}
8322
8326
}
8323
8327
8324
- // -j: case insensitive search if regex does not contain an upper case letter
8328
+ // -i: disable -j (unconditional overrides conditional)
8329
+ if (flag_ignore_case)
8330
+ flag_smart_case = false;
8331
+
8332
+ // -j: smart case insensitive search if regex does not contain an upper case letter
8325
8333
if (flag_smart_case)
8326
8334
{
8327
8335
flag_ignore_case = true;
@@ -14849,7 +14857,7 @@ Character context on a matching line before or after a match is output when\n\
14849
14857
[[:name:]] one char in POSIX class: ^ begin of line anchor\n\
14850
14858
alnum a-z,A-Z,0-9 $ end of line anchor\n\
14851
14859
alpha a-z,A-Z \\A begin of file anchor\n\
14852
- ascii ASCII char \\x00-\\x7f \\Z end of file anchodr \n\
14860
+ ascii ASCII char \\x00-\\x7f \\Z end of file anchor \n\
14853
14861
blank space or tab \\b word boundary\n\
14854
14862
cntrl control characters \\B non-word boundary\n\
14855
14863
digit 0-9 \\< start of word boundary\n\
0 commit comments