Merge pull request #58 from inkarkat/bug-quoting-negative-term

FIX: Correct quoting for negative -TERM filtering.
This commit is contained in:
Gina Trapani
2011-12-07 09:31:28 -08:00
2 changed files with 24 additions and 1 deletions

View File

@@ -690,7 +690,7 @@ filtercommand()
## $search_term
#
## Remove the first character (-) before adding to our filter command
filter="${filter:-}${filter:+ | }grep -v -i '$(shellquote "${search_term:1}")'"
filter="${filter:-}${filter:+ | }grep -v -i $(shellquote "${search_term:1}")"
fi
done