WW_FILE_SEARCH should affect file-search only

This commit is contained in:
Matteo Rossini 2016-05-19 21:24:18 +02:00
parent 98103d1df1
commit cc305a928a

View file

@ -1000,7 +1000,6 @@ if [ "$SLACKPKGPLUS" = "on" ];then
[ "$SPINNING" = "off" ] || spinning ${TMPDIR}/waiting &
[ "$SENSITIVE_SEARCH" = "off" ] && GREPOPTS="--ignore-case"
[ ! "$WW_FILE_SEARCH" = "off" ] && GREPOPTS="$GREPOPTS --word-regexp"
# -- PKGLIST:
# temporary file used to store data about packages. It uses
@ -1018,6 +1017,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
if [ "$CMD" == "file-search" ] ; then
[ ! -e "${WORKDIR}/${DIR}-filelist.gz" ] && continue
[ ! "$WW_FILE_SEARCH" = "off" ] && GREPOPTS="$GREPOPTS --word-regexp"
# NOTE:
# The awk below produces an output formatted like