}
pfile() {
# -a = search all repos
- local arg
+ local -a arg
if [[ $1 != -a ]]; then
- arg="--filter-origins $(positive-origins)"
+ arg=(--filter-origins "$(positive-origins)")
fi
local file=$1
# ucfq can tell us about config files which are not tracked
if [[ $file == /* ]]; then
dpkg -S "$file"
elif [[ $file == */* ]]; then
- apt-file $arg find -x "$file"\$
+ apt-file "${arg[@]}" find -x "$file"\$
else
- apt-file $arg find -x /"$file"\$
+ apt-file "${arg[@]}" find -x /"$file"\$
update-alternatives --list "$file" 2>/dev/null
fi
}