--- trunk/apt-iselect 2004/12/04 15:39:21 8 +++ trunk/apt-iselect 2004/12/07 23:36:41 9 @@ -25,7 +25,8 @@ # 2003-10-09 allow multi-selection of packages to view details # 2003-11-13 fix for RedHat 9.0 mktemp bug suggested by Dobes Vandermeer # 2004-07-27 allow multi-selection of packages to install -# 2004-12-04 Add quick install options +# 2004-12-04 add quick install options +# 2004-12-06 fixed multi-word search # # I know it's ugly, but it's still faster than aptitude :-) # @@ -82,11 +83,11 @@ trap 'rmtemp; exit 1' INT QUIT TERM SEGV apt_cache_search() { - search_words="$@" + search_words="$*" echo "Searching apt-cache for \"$search_words\"..." - apt-cache search "$search_words" | head -1020 > $res + apt-cache search "$@" | head -1020 > $res nr=`wc -l $res | sed 's/^ *//' | cut -d" " -f1` if [ $nr = 0 ] ; then echo "No results for \"$search_words\"" > $res2