summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorKoichi Murase <myoga.murase@gmail.com>2021-06-04 22:52:15 -0500
committerRobby Workman <rworkman@slackware.com>2021-06-04 22:52:15 -0500
commitae1b8712a6c74015144bfd8ba49cda531d3ad051 (patch)
treea3d594731a948391f02a5deea38e0cc4b0af2938 /files
parent1d0b67507afcdd77c136193d7b0c9d12af264822 (diff)
downloadslackpkg-ae1b8712a6c74015144bfd8ba49cda531d3ad051.tar.xz
Add "--" option to "command cd" in bash completion file
Signed-off-by: Robby Workman <rworkman@slackware.com>
Diffstat (limited to 'files')
-rw-r--r--files/shell-completion/slackpkg.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/shell-completion/slackpkg.bash b/files/shell-completion/slackpkg.bash
index f1b5ca6..7be2bb2 100644
--- a/files/shell-completion/slackpkg.bash
+++ b/files/shell-completion/slackpkg.bash
@@ -63,7 +63,7 @@ _slackpkg()
install-template | remove-template)
if [[ -e $confdir/templates ]]; then
COMPREPLY=($(
- cd "$confdir/templates"
+ command cd -- "$confdir/templates"
compgen -f -X "!*.template" -- "$cur"
))
COMPREPLY=(${COMPREPLY[@]%.template})
@@ -75,7 +75,7 @@ _slackpkg()
COMPREPLY+=($(compgen -W 'a ap d e f k kde kdei l n t tcl x
xap xfce y' -- "$cur"))
COMPREPLY+=($(
- cd /var/log/packages
+ command cd /var/log/packages
compgen -f -- "$cur"
))
return