From af39b8cfa938661c04c6644de59a7a7343fff84f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 6 Sep 2016 10:42:43 +1200 Subject: Add left-paren to subshell cases --- bash/bash_completion.d/find.bash | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bash') diff --git a/bash/bash_completion.d/find.bash b/bash/bash_completion.d/find.bash index 94305a8e..50a6cc41 100644 --- a/bash/bash_completion.d/find.bash +++ b/bash/bash_completion.d/find.bash @@ -31,7 +31,7 @@ _find() { # an option; crude, but simple, and will be right the vast majority of # the time case ${COMP_WORDS[COMP_CWORD]} in - -*) + (-*) compgen -W ' -atime -ctime @@ -61,22 +61,22 @@ _find() { case "${COMP_WORDS[COMP_CWORD-1]}" in # Args to -exec and -execdir should be commands - -exec|-execdir) + (-exec|-execdir) compgen -A command -- "${COMP_WORDS[COMP_CWORD]}" ;; # Args to -group should complete group names - -group) + (-group) compgen -A group -- "${COMP_WORDS[COMP_CWORD]}" ;; # Legal POSIX flags for -type - -type) + (-type) compgen -W 'b c d f l p s' -- "${COMP_WORDS[COMP_CWORD]}" ;; # Args to -user should complete usernames - -user) + (-user) compgen -A user -- "${COMP_WORDS[COMP_CWORD]}" ;; esac -- cgit v1.2.3