mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 17:13:50 +02:00
test: add Japanese translation (#6725)
This commit is contained in:
parent
dad3274aba
commit
3e9b86ae4e
1 changed files with 25 additions and 0 deletions
25
pages.ja/common/test.md
Normal file
25
pages.ja/common/test.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# test
|
||||
|
||||
> 条件を評価します。
|
||||
> 条件が真と評価された場合は 0 を、偽と評価された場合は 1 を返します。
|
||||
> 詳しくはこちら: <https://www.gnu.org/software/coreutils/test>.
|
||||
|
||||
- 与えられた変数が与えられた文字列と等しいかどうかをテスト:
|
||||
|
||||
`test "{{$変数名}}" == "{{/bin/zsh}}"`
|
||||
|
||||
- 与えられた変数が空であるかどうかをテスト:
|
||||
|
||||
`test -z "{{$変数名}}"`
|
||||
|
||||
- ファイルが存在するかどうかをテスト:
|
||||
|
||||
`test -f "{{ファイルへのパス}}"`
|
||||
|
||||
- ディレクトリが存在しないかどうかをテスト:
|
||||
|
||||
`test ! -d "{{ディレクトリへのパス}}"`
|
||||
|
||||
- if-else 文:
|
||||
|
||||
`test {{条件}} && {{echo "真"}} || {{echo "偽"}}`
|
Loading…
Add table
Reference in a new issue