30 lines
620 B
JSON
30 lines
620 B
JSON
{
|
|
"name": "test",
|
|
"section": 1,
|
|
"title": "evaluate a condition",
|
|
"synopsis": [
|
|
"test [OPTION]... [OPERAND]..."
|
|
],
|
|
"description": "Bare OS implementation of evaluate a condition. Full behavior is defined in packages/bare-os-coreutils/src/test.js.",
|
|
"options": [],
|
|
"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"
|
|
}
|
|
]
|
|
}
|