1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:38:10 +00:00

test: Support more options

Adds -g, -G, -k, -O and -u options.
This commit is contained in:
implicitfield 2022-09-30 21:11:49 +03:00 committed by Andreas Kling
parent caab6ac968
commit 6c86b40724
2 changed files with 97 additions and 3 deletions

View file

@ -71,6 +71,11 @@ The expression can take any of the following forms:
* `-w <file>` whether the current user has write access to the file
* `-x <file>` whether the current user has execute access to the file
* `-e <file>` whether the file exists
* `-g <file>` whether the file exists and has the set-group-ID bit set
* `-G <file>` whether the file exists and is owned by the effective group ID
* `-k <file>` whether the file exists and has the sticky bit set
* `-O <file>` whether the file exists and is owned by the effective user ID
* `-u <file>` whether the file exists and has the set-user-ID bit set
Except for `-h/-L`, all file checks dereference symbolic links.