aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/grep.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-20 12:56:53 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-20 12:56:53 +1200
commit77062411d5b0cf9db05dea16e825e991e6184361 (patch)
tree772295554dbc11a02cc4fe1567dee8d21b85ef26 /bash/bashrc.d/grep.bash
parentFix dotfiles dir existence test (diff)
downloaddotfiles-77062411d5b0cf9db05dea16e825e991e6184361.tar.gz
dotfiles-77062411d5b0cf9db05dea16e825e991e6184361.zip
Remove unnecessary quoting in simple assignments
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