From ae1b8712a6c74015144bfd8ba49cda531d3ad051 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Fri, 4 Jun 2021 22:52:15 -0500 Subject: Add "--" option to "command cd" in bash completion file Signed-off-by: Robby Workman --- files/shell-completion/slackpkg.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'files') 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 -- cgit v1.2.3