will work; that functionality is unspecified and is not guaranteed.
For example, the following are equivalent:
- apkv add syslinux .virt
- apkv a syslinux virt
- apkv abcdefg syslinux .virt
+ $0 add syslinux .virt
+ $0 a syslinux virt
+ $0 abcdefg syslinux .virt
"
}
# $(echo) construct is to use word splitting to normalize whitespace
add) currpkgs="$(echo $currpkgs) $pkgs";;
del) # XXX: there's probably a more efficient way to do this
- for x in "$pkgs"; do
+ for x in $pkgs; do
currpkgs=$(echo "$currpkgs" | grep -vFiw $x)
done;;
esac