Add -context to find(1) options.

This commit is contained in:
Ville Skyttä 2010-05-08 00:18:40 +03:00
parent 95648c40c5
commit e69af25547
2 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ _find()
;; ;;
-[acm]min|-[acm]time|-iname|-lname|-wholename|-iwholename|-lwholename|\ -[acm]min|-[acm]time|-iname|-lname|-wholename|-iwholename|-lwholename|\
-ilwholename|-inum|-path|-ipath|-regex|-iregex|-links|-perm|-size|\ -ilwholename|-inum|-path|-ipath|-regex|-iregex|-links|-perm|-size|\
-used|-printf) -used|-printf|-context)
# do nothing, just wait for a parameter to be given # do nothing, just wait for a parameter to be given
return 0 return 0
;; ;;
@ -89,7 +89,7 @@ _find()
-fstype -gid -group -ilname -iname -inum -ipath -iregex -iwholename \ -fstype -gid -group -ilname -iname -inum -ipath -iregex -iwholename \
-links -lname -mmin -mtime -name -newer -nogroup -nouser -path -perm \ -links -lname -mmin -mtime -name -newer -nogroup -nouser -path -perm \
-readable -regex -samefile -size -true -type -uid -used -user \ -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 \ -delete -exec -execdir -fls -fprint -fprint0 -fprintf -ls -ok -okdir \
-print -print0 -printf -prune -quit' -- "$cur" ) ) -print -print0 -printf -prune -quit' -- "$cur" ) )

View File

@ -31,7 +31,7 @@ set options [list -daystart -depth -follow -help \
-fstype -gid -group -ilname -iname -inum -ipath -iregex -iwholename \ -fstype -gid -group -ilname -iname -inum -ipath -iregex -iwholename \
-links -lname -mmin -mtime -name -newer -nogroup -nouser -path -perm \ -links -lname -mmin -mtime -name -newer -nogroup -nouser -path -perm \
-readable -regex -samefile -size -true -type -uid -used -user \ -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 \ -delete -exec -execdir -fls -fprint -fprint0 -fprintf -ls -ok -okdir \
-print -print0 -printf -prune -quit] -print -print0 -printf -prune -quit]
assert_complete $options {find -} assert_complete $options {find -}