[Bash-completion-commits] [SCM] bash-completion branch, master, updated. e69af25547425087b8e89554ca8c2c270bd6afae

Ville Skyttä ville.skytta at iki.fi
Fri May 7 21:18:58 UTC 2010


The following commit has been merged in the master branch:
commit e69af25547425087b8e89554ca8c2c270bd6afae
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat May 8 00:18:40 2010 +0300

    Add -context to find(1) options.

diff --git a/contrib/findutils b/contrib/findutils
index 50834be..73179a4 100644
--- a/contrib/findutils
+++ b/contrib/findutils
@@ -57,7 +57,7 @@ _find()
             ;;
         -[acm]min|-[acm]time|-iname|-lname|-wholename|-iwholename|-lwholename|\
         -ilwholename|-inum|-path|-ipath|-regex|-iregex|-links|-perm|-size|\
-        -used|-printf)
+        -used|-printf|-context)
             # do nothing, just wait for a parameter to be given
             return 0
             ;;
@@ -89,7 +89,7 @@ _find()
         -fstype -gid -group -ilname -iname -inum -ipath -iregex -iwholename \
         -links -lname -mmin -mtime -name -newer -nogroup -nouser -path -perm \
         -readable -regex -samefile -size -true -type -uid -used -user \
-        -wholename -writable -xtype \
+        -wholename -writable -xtype -context \
         -delete -exec -execdir -fls -fprint -fprint0 -fprintf -ls -ok -okdir \
         -print -print0 -printf -prune -quit' -- "$cur" ) )
 
diff --git a/test/lib/completions/find.exp b/test/lib/completions/find.exp
index 84a2f9e..4b1728d 100644
--- a/test/lib/completions/find.exp
+++ b/test/lib/completions/find.exp
@@ -31,7 +31,7 @@ set options [list -daystart -depth -follow -help \
         -fstype -gid -group -ilname -iname -inum -ipath -iregex -iwholename \
         -links -lname -mmin -mtime -name -newer -nogroup -nouser -path -perm \
         -readable -regex -samefile -size -true -type -uid -used -user \
-        -wholename -writable -xtype \
+        -wholename -writable -xtype -context \
         -delete -exec -execdir -fls -fprint -fprint0 -fprintf -ls -ok -okdir \
         -print -print0 -printf -prune -quit]
 assert_complete $options {find -}

-- 
bash-completion



More information about the Bash-completion-commits mailing list