add -O and -G to test command

they are available on Linux and OS X, and now ported to fish
This commit is contained in:
Tony Wang
2013-08-23 22:54:24 +08:00
committed by ridiculousfish
parent 9f46881c16
commit 1d67d8ff23
2 changed files with 24 additions and 12 deletions

View File

@@ -16,7 +16,9 @@ The following operators are available to examine files and directories:
- <tt>-e FILE</tt> returns true if \c FILE exists.
- <tt>-f FILE</tt> returns true if \c FILE is a regular file.
- <tt>-g FILE</tt> returns true if \c FILE has the set-group-ID bit set.
- <tt>-G FILE</tt> returns true if \c FILE exists and its group matches the effective group id of this process.
- <tt>-L FILE</tt> returns true if \c FILE is a symbolic link.
- <tt>-O FILE</tt> returns true if \c FILE exists and its owner matches the effective user id of this process.
- <tt>-p FILE</tt> returns true if \c FILE is a named pipe.
- <tt>-r FILE</tt> returns true if \c FILE is marked as readable.
- <tt>-s FILE</tt> returns true if the size of \c FILE is greater than zero.