Fix value for BASH_IT_GREP

pull/2167/head
Piotr Rogoża 2022-10-02 21:05:02 +02:00
parent 47cfc34931
commit 886250d06d
1 changed files with 2 additions and 2 deletions

View File

@ -62,13 +62,13 @@ function _bash-it-array-dedup() {
# Outputs a full path of the grep found on the filesystem # Outputs a full path of the grep found on the filesystem
function _bash-it-grep() { function _bash-it-grep() {
: "${BASH_IT_GREP:=$(type -P egrep || type -P grep)}" : "${BASH_IT_GREP:=$(type -P grep)}"
printf "%s" "${BASH_IT_GREP:-/usr/bin/grep}" printf "%s" "${BASH_IT_GREP:-/usr/bin/grep}"
} }
# Runs `grep` with extended regular expressions # Runs `grep` with extended regular expressions
function _bash-it-egrep() { function _bash-it-egrep() {
: "${BASH_IT_GREP:=$(type -P egrep || type -P grep)}" : "${BASH_IT_GREP:=$(type -P grep)}"
"${BASH_IT_GREP:-/usr/bin/grep}" -E "$@" "${BASH_IT_GREP:-/usr/bin/grep}" -E "$@"
} }