aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/grep.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc.d/grep.bash')
-rw-r--r--bash/bashrc.d/grep.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/grep.bash b/bash/bashrc.d/grep.bash
index 4bd2ed5e..e3efe13c 100644
--- a/bash/bashrc.d/grep.bash
+++ b/bash/bashrc.d/grep.bash
@@ -5,7 +5,7 @@ __grepopts() {
local -a grepopts
# Snarf the output of `grep --help` into a variable
- local grephelp="$(grep --help 2>/dev/null)"
+ local grephelp=$(grep --help 2>/dev/null)
# Add option to ignore binary files
grepopts[${#grepopts[@]}]='-I'
@@ -22,7 +22,7 @@ __grepopts() {
# If the --color option is available and we have a terminal that supports
# at least eight colors, add --color=auto to the options
- local -i colors="$(tput colors)"
+ local -i colors=$(tput colors)
if [[ $grephelp == *--color* ]] && ((colors >= 8)); then
grepopts[${#grepopts[@]}]='--color=auto'
fi