bug-hyperbole
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#36933: Default option for rgrep -r is not supported with zgrep


From: Robert Weiner
Subject: bug#36933: Default option for rgrep -r is not supported with zgrep
Date: Mon, 5 Aug 2019 23:50:41 -0400

Replace this defcustom in your hypb.el file and reset it to default to grep rather than zgrep unless the BSD version is available.

(defcustom hypb:rgrep-command
  ;; Only the FreeBSD version of zgrep supports all of the grep
  ;; options that Hyperbole needs: -r, --include, and --exclude
  (format "%sgrep -insIHr" (if (and (executable-find "zgrep")
                                    (string-match-p "bsd" (shell-command-to-string "zgrep --version | head -1")))
                               "z" ""))
  "*Grep command string and initial arguments to send to `hypb:rgrep' command.
It must end with a space."
  :type 'string
  :group 'hyperbole-commands)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]