{ "name": "test", "section": 1, "title": "evaluate a condition", "synopsis": ["test [OPTION]... [OPERAND]..."], "description": "Evaluates file tests, string equality, and signed integer comparisons. Subset of POSIX test(1).", "options": [ { "flag": "-eq -ne -lt -le -gt -ge", "meaning": "Integer comparisons (decimal)" }, { "flag": "-f -d -e -a", "meaning": "File type / existence (stat)" }, { "flag": "-h -L", "meaning": "Symlink (lstat)" }, { "flag": "-z -n", "meaning": "String empty / non-empty" } ], "keywords": ["test", "bare-os", "coreutils"], "examples": [ { "caption": "file exists", "code": "test -f ~/.barerc && echo yes" }, { "caption": "directory", "code": "test -d /home/user" }, { "caption": "string equal", "code": "test \"$USER\" = guest" } ], "listCategory": "coreutils" }