2005-09-20 21:31:55 +08:00
|
|
|
|
2006-01-08 10:56:56 +08:00
|
|
|
complete -c test -l help -d (_ "Display help and exit")
|
|
|
|
complete -c test -l version -d (_ "Display version and exit")
|
|
|
|
complete -c test -a ! -d (_ "Negate expression")
|
|
|
|
complete -c test -s a -d (_ "Logical and")
|
|
|
|
complete -c test -s o -d (_ "Logical or")
|
|
|
|
complete -c test -s n -d (_ "String length is non-zero")
|
|
|
|
complete -c test -s z -d (_ "String length is zero")
|
|
|
|
complete -c test -a = -d (_ "Strings are equal")
|
|
|
|
complete -c test -a != -d (_ "Strings are not equal")
|
|
|
|
complete -c test -o eq -d (_ "Integers are equal")
|
|
|
|
complete -c test -o ge -d (_ "Left integer larger than or equal to right integer")
|
|
|
|
complete -c test -o gt -d (_ "Left integer larger than right integer")
|
|
|
|
complete -c test -o le -d (_ "Left integer less than or equal to right integer")
|
|
|
|
complete -c test -o lt -d (_ "Left integer less than right integer")
|
|
|
|
complete -c test -o ne -d (_ "Left integer not equal to right integer")
|
|
|
|
complete -c test -o ef -d (_ "Left file equal to right file")
|
|
|
|
complete -c test -o nt -d (_ "Left file newer than right file")
|
|
|
|
complete -c test -o ot -d (_ "Left file older than right file")
|
|
|
|
complete -c test -s b -d (_ "File is block device")
|
|
|
|
complete -c test -s c -d (_ "File is character device")
|
|
|
|
complete -c test -s d -d (_ "File is directory")
|
|
|
|
complete -c test -s e -d (_ "File exists")
|
|
|
|
complete -c test -s f -d (_ "File is regular")
|
|
|
|
complete -c test -s g -d (_ "File is set-group-ID")
|
|
|
|
complete -c test -s h -d (_ "File is symlink")
|
|
|
|
complete -c test -s G -d (_ "File owned by effective group ID")
|
|
|
|
complete -c test -s k -d (_ "File has sticky bit set")
|
|
|
|
complete -c test -s L -d (_ "File is symlink")
|
|
|
|
complete -c test -s O -d (_ "File owned by effective user ID")
|
|
|
|
complete -c test -s p -d (_ "File is named pipe")
|
|
|
|
complete -c test -s r -d (_ "File is readable")
|
|
|
|
complete -c test -s s -d (_ "File size is non-zero")
|
|
|
|
complete -c test -s S -d (_ "File is socket")
|
|
|
|
complete -c test -s t -d (_ "FD is terminal")
|
|
|
|
complete -c test -s u -d (_ "File set-user-ID bit is set")
|
|
|
|
complete -c test -s w -d (_ "File is writable")
|
|
|
|
complete -c test -s x -d (_ "File is executable")
|
2005-09-20 21:31:55 +08:00
|
|
|
|