kiss: Squish alternatives list

This commit is contained in:
Dylan Araps 2020-03-22 16:26:08 +02:00
parent ffda5757d6
commit 3990e34dc0
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 2 additions and 11 deletions

13
kiss
View File

@ -1254,20 +1254,11 @@ args() {
pkg_swap "$@" pkg_swap "$@"
else else
set +f
log Alternatives:
# Go over each alternative and format the file # Go over each alternative and format the file
# name for listing. (pkg_name>usr>bin>ls) # name for listing. (pkg_name>usr>bin>ls)
for pkg in "$sys_db/../choices"/*; do set +f; for pkg in "$sys_db/../choices"/*; do
printf '%s\n' "${pkg##*/}" printf '%s\n' "${pkg##*/}"
done | done | sed 's|>| /|; s|>|/|g; /\*/d'
sed 's|>| /|; s|>|/|g; /\*/d'
log note "Think about what you are doing"
log note "for this feature requires thought"
fi fi
;; ;;