# HG changeset patch # User Aleksej Bobylev # Date 1513893774 -7200 # Node ID 24c9c0777880be9140b32c328ff6e5637c5193c4 # Parent ecb60a87e3e840843ad7698cee37380f374819ec modules/search: allow search file with dash at start: tazpkg -sf "-spi" diff -r ecb60a87e3e8 -r 24c9c0777880 modules/search --- a/modules/search Fri Nov 03 16:10:39 2017 -0400 +++ b/modules/search Fri Dec 22 00:02:54 2017 +0200 @@ -174,7 +174,7 @@ # name and the full path to the file(s). for pkg in $(awk -F$'\t' '{print $1}' $PKGS_DB/installed.info); do FL="$INSTALLED/$pkg/files.list" - if grep -qs "$2" "$FL"; then + if grep -qs -e "$2" "$FL"; then newline emsg "$(_ 'Package %s:' "$pkg")" awk -vtmp="$TMPLIST" -vfile="$2" -vcfile="$(colorize 32 $2)" '