4 trap 'rm -rf -- "$tmp"' EXIT
7 printf '%s\n' "${@:2}" | jq
-R -r '@uri' |
paste -s -d "$1"
12 set -- $
(aur pkglist | shuf
-n "$n_terms")
13 printf '%s\n' >&2 "$*"
16 # RPC query (set intersection)
17 aur search
--format '%n\n' "$@" |
sort >"$tmp"/a
20 curl
-s "https://aur.archlinux.org/packages?K=$(paste_args '+' "$@
")" | \
21 hq
'tbody > tr > td:first-child > a' text |
sort >"$tmp"/b
24 [[ -z $
(grep -Fvxf "$tmp"/a
"$tmp"/b
) ]] # B included in A
25 [[ -z $
(grep -Fvxf "$tmp"/b
"$tmp"/a
) ]] # A included in B