Function: consult--grep-lookahead-p

consult--grep-lookahead-p is a natively compiled function defined in consult.el.

Signature

(consult--grep-lookahead-p &rest CMD)

Documentation

Return t if grep CMD supports look-ahead.

Source Code

;; Defined in /nix/store/6higv2v1wk916v4ynnybyrdkfy2gq44d-emacs-packages-deps/share/emacs/site-lisp/elpa/consult-20261004.957/consult.el
(defun consult--grep-lookahead-p (&rest cmd)
  "Return t if grep CMD supports look-ahead."
  (eq 0 (process-file-shell-command
         (concat "echo xaxbx | "
                 (mapconcat #'shell-quote-argument `(,@cmd "^(?=.*b)(?=.*a)") " ")))))