summaryrefslogtreecommitdiffstats
path: root/completions/apt-get
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-17 14:57:17 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-17 14:57:17 +0000
commit4df698401a10efcd92ae24bada945e6bc73e565f (patch)
treee4007d29857dee54d238eab588299b04b778d45e /completions/apt-get
parentAdding debian version 1:2.13.0-1. (diff)
downloadbash-completion-4df698401a10efcd92ae24bada945e6bc73e565f.tar.xz
bash-completion-4df698401a10efcd92ae24bada945e6bc73e565f.zip
Merging upstream version 1:2.14.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'completions/apt-get')
-rw-r--r--completions/apt-get4
1 files changed, 2 insertions, 2 deletions
diff --git a/completions/apt-get b/completions/apt-get
index f59c62b..4c62b25 100644
--- a/completions/apt-get
+++ b/completions/apt-get
@@ -33,7 +33,7 @@ _comp_cmd_apt_get()
source)
# Prefer `apt-cache` in the same dir as command
local pathcmd
- pathcmd=$(type -P "$1") && local PATH=${pathcmd%/*}:$PATH
+ pathcmd=$(type -P -- "$1") && local PATH=${pathcmd%/*}:$PATH
_comp_compgen -x apt-cache packages
_comp_compgen -a split -- "$(apt-cache dumpavail |
_comp_awk '$1 == "Source:" { print $2 }' | sort -u)"
@@ -79,7 +79,7 @@ _comp_cmd_apt_get()
--target-release | --default-release | -${noargopts}t)
# Prefer `apt-cache` in the same dir as command
local pathcmd
- pathcmd=$(type -P "$1") && local PATH=${pathcmd%/*}:$PATH
+ pathcmd=$(type -P -- "$1") && local PATH=${pathcmd%/*}:$PATH
_comp_compgen_split -- "$(apt-cache policy | command sed -ne \
's/^ *release.*[ ,]o=\(Debian\|Ubuntu\),a=\(\w*\).*/\2/p')"
return