From 05725fd9f94d397102155e3349e56415eaf6e9e0 Mon Sep 17 00:00:00 2001 From: ianmacd <> Date: Mon, 15 Dec 2003 17:57:49 +0000 Subject: [PATCH] - more improvements to find(1) completion by Rodrigo Bernardo Pimentel --- bash_completion | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bash_completion b/bash_completion index a1f3d3e0..55eb0be2 100644 --- a/bash_completion +++ b/bash_completion @@ -1,6 +1,6 @@ # bash_completion - some programmable completion functions for bash 2.05b # -# $Id: bash_completion,v 1.663 2003/12/15 18:54:17 ianmacd Exp $ +# $Id: bash_completion,v 1.664 2003/12/15 18:57:49 ianmacd Exp $ # # Copyright (C) Ian Macdonald # @@ -834,8 +834,14 @@ _find() COMPREPLY=( $( compgen -u -- $cur ) ) return 0 ;; + -exec|-ok) + COMP_WORDS=(COMP_WORDS[0] $cur) + COMP_CWORD=1 + _command + return 0 + ;; -[acm]min|-[acm]time|-?(i)?(l)name|-inum|-?(i)path|-?(i)regex| \ - -links|-perm|-size|-used|-exec|-ok|-printf) + -links|-perm|-size|-used|-printf) # do nothing, just wait for a parameter to be given return 0 ;;