|
1478.
|
|
|
-n STRING the length of STRING is nonzero
STRING equivalent to -n STRING
-z STRING the length of STRING is zero
STRING1 = STRING2 the strings are equal
STRING1 != STRING2 the strings are not equal
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
-n STRING STRING の長さが 0 でない
STRING -n STRING と等価
-z STRING STRING の長さが 0
STRING1 = STRING2 両方の文字列が等しい
STRING1 != STRING2 両方の文字列が等しくない
|
|
Translated by
Yasuaki Taniguchi
|
|
|
|
Located in
src/test.c:710
|
|
1479.
|
|
|
INTEGER1 -eq INTEGER2 INTEGER1 is equal to INTEGER2
INTEGER1 -ge INTEGER2 INTEGER1 is greater than or equal to INTEGER2
INTEGER1 -gt INTEGER2 INTEGER1 is greater than INTEGER2
INTEGER1 -le INTEGER2 INTEGER1 is less than or equal to INTEGER2
INTEGER1 -lt INTEGER2 INTEGER1 is less than INTEGER2
INTEGER1 -ne INTEGER2 INTEGER1 is not equal to INTEGER2
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
INTEGER1 -eq INTEGER2 INTEGER1 が INTEGER2 に等しい
INTEGER1 -ge INTEGER2 INTEGER1 が INTEGER2 以上
INTEGER1 -gt INTEGER2 INTEGER1 が INTEGER2 より大きい
INTEGER1 -le INTEGER2 INTEGER1 が INTEGER2 以下
INTEGER1 -lt INTEGER2 INTEGER1 が INTEGER2 未満
INTEGER1 -ne INTEGER2 INTEGER1 が INTEGER2 に等しくない
|
|
Translated and reviewed by
Masahito Yamaga
|
|
|
|
Located in
src/test.c:718
|
|
1480.
|
|
|
FILE1 -ef FILE2 FILE1 and FILE2 have the same device and inode numbers
FILE1 -nt FILE2 FILE1 is newer (modification date) than FILE2
FILE1 -ot FILE2 FILE1 is older than FILE2
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
FILE1 -ef FILE2 FILE1 と FILE2 が同じデバイスで inode も等しい
FILE1 -nt FILE2 FILE1 が FILE2 より (更新時刻が) 新しい
FILE1 -ot FILE2 FILE1 が FILE2 より古い
|
|
Translated by
Akihiro Motoki
|
|
|
|
Located in
src/test.c:727
|
|
1481.
|
|
|
-b FILE FILE exists and is block special
-c FILE FILE exists and is character special
-d FILE FILE exists and is a directory
-e FILE FILE exists
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
-b FILE FILE が存在し、かつブロックデバイスである
-c FILE FILE が存在し、かつキャラクタデバイスである
-d FILE FILE が存在し、かつディレクトリである
-e FILE FILE が存在する
|
|
Translated by
Yasuaki Taniguchi
|
In upstream: |
|
-b FILE FILE が存在し, 且つブロックデバイスである
-c FILE FILE が存在し, 且つキャラクタデバイスである
-d FILE FILE が存在し, 且つディレクトリである
-e FILE FILE が存在する
|
|
|
Suggested by
Masahito Yamaga
|
|
|
|
Located in
src/test.c:733
|
|
1482.
|
|
|
-f FILE FILE exists and is a regular file
-g FILE FILE exists and is set-group-ID
-G FILE FILE exists and is owned by the effective group ID
-h FILE FILE exists and is a symbolic link (same as -L)
-k FILE FILE exists and has its sticky bit set
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
-f FILE FILE が存在し、かつ通常ファイルである
-g FILE FILE が存在し、かつ set-group-ID されている
-G FILE FILE が存在し、かつ実効グループ ID によって所有されている
-h FILE FILE が存在し、かつシンボリックリンクである (-L と同じ)
-k FILE FILE が存在し、かつスティッキービットが立っている
|
|
Translated by
Yasuaki Taniguchi
|
|
|
|
Located in
src/test.c:740
|
|
1483.
|
|
|
-L FILE FILE exists and is a symbolic link (same as -h)
-O FILE FILE exists and is owned by the effective user ID
-p FILE FILE exists and is a named pipe
-r FILE FILE exists and read permission is granted
-s FILE FILE exists and has a size greater than zero
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
-L FILE FILE が存在し、かつシンボリックリンクである (-h と同じ)
-O FILE FILE が存在し、かつ実効ユーザ ID によって所有されている
-p FILE FILE が存在し、かつ名前付きパイプである
-r FILE FILE が存在し、かつ読み込みが許可されている
-s FILE FILE が存在し、かつ大きさが 0 より大きい
|
|
Translated by
Yasuaki Taniguchi
|
|
|
|
Located in
src/test.c:771
|
|
1484.
|
|
|
-S FILE FILE exists and is a socket
-t FD file descriptor FD is opened on a terminal
-u FILE FILE exists and its set-user-ID bit is set
-w FILE FILE exists and write permission is granted
-x FILE FILE exists and execute (or search) permission is granted
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
-S FILE FILE が存在し、かつソケットである
-t FD ファイル記述子 FD がターミナル上で開いている
-u FILE FILE が存在し、かつ set-user-ID bit が立っている
-w FILE FILE が存在し、かつ書き込みが許可されている
-x FILE FILE が存在し、かつ実行 (または検索) が許可されている
|
|
Translated by
Yasuaki Taniguchi
|
|
|
|
Located in
src/test.c:760
|
|
1485.
|
|
|
Except for -h and -L, all FILE-related tests dereference symbolic links.
Beware that parentheses need to be escaped (e.g., by backslashes) for shells.
INTEGER may also be -l STRING, which evaluates to the length of STRING.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
-h および -L を除き、全ての FILE 関連のテストはシンボリックリンクを辿ります。
小括弧はシェルに対して (バックスラッシュなどによって) エスケープが必要なこと
に注意してください。INTEGER は文字列の長さを返す -l STRING を使うことも可能です。
|
|
Translated by
Yasuaki Taniguchi
|
|
|
|
Located in
src/test.c:762
|
|
1486.
|
|
|
NOTE: [ honors the --help and --version options, but test does not.
test treats each of those as it treats any other nonempty STRING.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
備考: [ では --help および --version オプションを使えますが、test では
使えません。 test はそれらを空でない STRING として扱います。
|
|
Translated by
Yasuaki Taniguchi
|
|
|
|
Located in
src/test.c:773
|
|
1487.
|
|
|
test and/or [
|
|
|
|
test および/または [
|
|
Translated by
Yasuaki Taniguchi
|
|
|
|
Located in
src/test.c:778
|