Add -context to find(1) options.
This commit is contained in:
parent
95648c40c5
commit
e69af25547
@ -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" ) )
|
||||
|
||||
|
@ -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 -}
|
||||
|
Loading…
x
Reference in New Issue
Block a user