1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
|
.\" This file documents the GNU shell utilities.
.\"
.\" Copyright (C) 1994 Free Software Foundation, Inc.
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of
.\" this manual under the conditions for verbatim copying, provided that
.\" the entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one.
.\"
.\" Permission is granted to copy and distribute translations of this
.\" manual into another language, under the above conditions for modified
.\" versions, except that this permission notice may be stated in a
.\" translation approved by the Foundation.
.\"
.\" Japanese Version Copyright (c) 1997 NAKANO Takeo, all rights reserved.
.\" Translated Thu May 27 1997 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
.\"
.TH TEST 1 "GNU Shell Utilities" "FSF" \" -*- nroff -*-
.SH ̾
test \- եηΥåͤӤԤ
.SH
.B test
[expr]
.br
.B test
{\-\-help,\-\-version}
.SH
ʸϤ⤦ƥʥƤʤΤǡΡԴ
ʲǽ롣ߤ texinfo ʸʾȤʤäƤ롣
.PP
Υޥ˥奢ڡ GNU
.BR test
ˤĤƵҤΤǤ롣
ۤȤɤΥˤƱ̾ƱͤεǽäȤ߹ߥޥɤ
뤳Ȥա
.PP
.B test
ϾP
.IR expr
ɾ̤ˤäơ 0ʿˤޤ 1ʵˤλơ
Ȥ֤
ñ༰뤤༰Ǥ롣ñ༰̾եΥơĴ
뤿Ѥ롣ʸФ黻ҤͤӤ黻Ҥ⤢롣
.PD 0
.TP
.B \-b \fIfile\fP
\fIfile\fP ¸ߤ֥åڥեǤп
.TP
.B \-c \fIfile\fP
\fIfile\fP ¸ߤ饯ڥեǤп
.TP
.B \-d \fIfile\fP
\fIfile\fP ¸ߤǥ쥯ȥǤп
.TP
.B \-e \fIfile\fP
\fIfile\fP ¸ߤп
.TP
.B \-f \fIfile\fP
\fIfile\fP ¸ߤ̾ΥեǤп
.TP
.B \-g \fIfile\fP
\fIfile\fP ¸ߤset GID Ƥп
.TP
.B \-k \fIfile\fP
\fIfile\fP ¸ߤ sticky ӥåȤΩäƤп
.TP
.B \-L \fIfile\fP
\fIfile\fP ¸ߤܥåǤп
.TP
.B \-p \fIfile\fP
\fIfile\fP ¸ߤ̾դѥסnamed pipeˤǤп
.TP
.B \-r \fIfile\fP
\fIfile\fP ¸ߤɤǽǤп
.TP
.B \-s \fIfile\fP
\fIfile\fP ¸ߤ 0 礭п
.TP
.B \-S \fIfile\fP
\fIfile\fP ¸ߤåȤǤп
.TP
.B \-t [\fIfd\fP]
.I fd
üǥץƤп
.I fd
ά줿Υǥեͤ 1ɸϡˡ
.TP
.B \-u \fIfile\fP
\fIfile\fP ¸ߤ set SUID Ƥп
.TP
.B \-w \fIfile\fP
\fIfile\fP ¸ߤ߲ǽǤп
.TP
.B \-x \fIfile\fP
\fIfile\fP ¸ߤ¹ԲǽǤп
.TP
.B \-O \fIfile\fP
\fIfile\fP ¸ߤ¸桼 ID ˤͭǤп
.TP
.B \-G \fIfile\fP
\fIfile\fP ¸ߤ¸롼 ID ˤͭǤп
.TP
\fIfile1\fP \-\fBnt\fP \fIfile2\fP
\fIfile1\fP \fIfile2\fP ʽӤơ˿п
.TP
\fIfile1\fP \-\fBot\fP \fIfile2\fP
\fIfile1\fP \fIfile2\fP Ťп
.TP
\fIfile1\fP \fB\-ef\fP \fIfile2\fP
\fIfile1\fP \fIfile2\fP ΥǥХֹ i-Ρֹ椬
п
.TP
.B \-z \fIstring\fP
\fIstring\fP Ĺ 0 Ǥп
.TP
.B \-n \fIstring\fP
.TP
.I string
Ĺ 0 礭п
.TP
\fIstring1\fP \fB=\fP \fIstring2\fP
Ĥʸп
.TP
\fIstring1\fP \fB!=\fP \fIstring2\fP
Ĥʸʤп
.TP
.B ! \fIexpr\fP
.I expr
Ǥп
.TP
\fIexpr1\fP \-\fBa\fP \fIexpr2\fP
.I expr1
.I expr2
ξǤп
.TP
\fIexpr1\fP \-\fBo\fP \fIexpr2\fP
.I expr1
.I expr2
Τɤ餫Ǥп
.TP
.I arg1 \fBOP\fP arg2
.SM
.B OP
.BR \-eq
.BR \-ne
.BR \-lt
.BR \-le
.BR \-gt
.BR \-ge
Τ줫
ӱ黻Ҥϡ줾 \fIarg1\fP \fIarg2\fPʤ
ʤ꾮꾮礭礭
˾п
.I arg1
.I arg2
Ȥ뤳ȤǤ롣ޤ \fB\-l\fP \fIstring\fP
Ȥüʼꤹ뤳ȤǤξ
.IR string
ĹȤʤ롣
.SS ץ
GNU
.B test
ĤǼ¹Ԥ줿Ȥ˸¤ꡢʲΥץǧ:
.TP
.I "\-\-help"
Ȥ˴ؤåɸϤɽ¹֤ƽλ롣
.TP
.I "\-\-version"
СɸϤɽ¹֤ƽλ롣
|