Escape slashes if using '-t'
This commit is contained in:
parent
f1ca42d762
commit
bd3cac3bb6
1 changed files with 3 additions and 0 deletions
|
@ -406,6 +406,9 @@ else
|
||||||
SEARCH="${SEARCH}/ && ${CASE_TAG_FGREP}(\$1) ~ /"
|
SEARCH="${SEARCH}/ && ${CASE_TAG_FGREP}(\$1) ~ /"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
## Escape any slashes
|
||||||
|
tag="$( echo ${tag} | sed 's_/_\\/_g' )"
|
||||||
|
|
||||||
## Case sensitive?
|
## Case sensitive?
|
||||||
if [[ "${SCASE}" -eq 1 ]]; then
|
if [[ "${SCASE}" -eq 1 ]]; then
|
||||||
SEARCH="${SEARCH}${tag}"
|
SEARCH="${SEARCH}${tag}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue