mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-09 19:50:25 +03:00
SlackBuilds package tool
3a92318fa8
* search_package(): modified to return a sorted list * gen_search_package(): moved my select menu to the new function. * search_and_display(): new function which takes one or more arguments (literal or quoted globs) from the command line (-s) and uses search_package() to return an array of possible matches. If more than one app is returned, it presents the user with a menu. It displays the standard files associated with the app the user chooses. If search_package() only returns one app, it displays the associated files immediately. Despite being a new function, this merely restores old functionality (albeit somewhat improved) which had been broken. * main: moved the old code from the SEARCH test block to the new function, replacing it with a call to that function. * main: temporarily disabled pathname expansion in part of the GENSEARCH test block (and in part of the new function) so it wouldn't break if someone searched for 'fu*' with a 'fubar' file in the current directory. Also modified the man page and one comment regarding details of these flags/functions. |
||
---|---|---|
src | ||
tools |