OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / gnumaniak / release / man1 / test.1
1 .\" You may copy, distribute and modify under the terms of the LDP General
2 .\" Public License as specified in the LICENSE file that comes with the
3 .\" gnumaniak distribution
4 .\"
5 .\" The author kindly requests that no comments regarding the "better"
6 .\" suitability or up-to-date notices of any info documentation alternative
7 .\" is added without contacting him first.
8 .\"
9 .\" (C) 1999-2002 Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>
10 .\"
11 .\"     GNU test man page
12 .\"     man pages are NOT obsolete!
13 .\"     <ragnar@ragnar-hojland.com>
14 .\"
15 .\" Japanese Version Copyright (c) 2000 NAKANO Takeo all rights reserved.
16 .\" Translated Sun 12 Mar 2000 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
17 .\" 
18 .TH test 1 "18 June 2002" "GNU Shell Utilities 2.1"
19 .SH Ì¾Á°
20 test \- ¥Õ¥¡¥¤¥ë·Á¼°¤Î¥Á¥§¥Ã¥¯¤äÃͤÎÈæ³Ó¤ò¹Ô¤¦
21 .SH ½ñ¼°
22 .BI "test [" expr ]
23 .sp
24 .B test [\-\-help] [\-\-version]
25 .SH ÀâÌÀ
26 .B test
27 ¤Ï¾ò·ï¼°
28 .IR expr
29 ¤òɾ²Á¤·¤¿·ë²Ì¤Ë¤è¤Ã¤Æ¡¢ 0 (¿¿) ¤Þ¤¿¤Ï 1 (µ¶)
30 ¤ò½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤È¤·¤ÆÊÖ¤¹¡£
31 .PP
32 ¼°¤Î³ÆÉôʬ¤Ï¤½¤ì¤¾¤ìʬΥ¤µ¤ì¤¿°ú¿ô¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
33 ¼°¤Ïñ¹à¼°¤¢¤ë¤¤¤ÏÆó¹à¼°¤Ç¤¢¤ë¡£
34 .B test
35 ¤Ï¥Õ¥¡¥¤¥ë¤Î¥¹¥Æ¡¼¥¿¥¹Ä´ºº¡¢Ê¸»úÎóÁàºî¡¢¿ôÃͤÎÈæ³Ó±é»»¤ò¹Ô¤¦¤³¤È¤¬¤Ç¤­¤ë¡£
36 .PP
37 ¤Û¤È¤ó¤É¤Î¥·¥§¥ë¤Ë¤ÏƱ̾¤ÎÁȤ߹þ¤ß¥³¥Þ¥ó¥É¤¬¤¢¤ë¤Î¤Ç¡¢
38 ñ¤Ë `test' ¤È¤·¤Æ¼Â¹Ô¤¹¤ë¤È¡¢
39 ¤³¤³¤Çµ­½Ò¤µ¤ì¤¿¤â¤Î¤È¤Ï°Û¤Ê¤Ã¤¿µ¡Ç½¤Î¤â¤Î¤¬¼Â¹Ô¤µ¤ì¤ë¤À¤í¤¦¡£
40 .SS ¥Õ¥¡¥¤¥ë·Á¼°¤Î¥Æ¥¹¥È
41 .PD 0
42 .TP
43 .B \-b \fIfile\fP
44 \fIfile\fP ¤¬Â¸ºß¤·¡¢¥Ö¥í¥Ã¥¯¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤Ç¤¢¤ì¤Ð¿¿¡£
45 .TP
46 .B \-c \fIfile\fP
47 \fIfile\fP ¤¬Â¸ºß¤·¡¢¥­¥ã¥é¥¯¥¿¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤Ç¤¢¤ì¤Ð¿¿¡£
48 .TP
49 .B \-d \fIfile\fP
50 \fIfile\fP ¤¬Â¸ºß¤·¡¢¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤¢¤ì¤Ð¿¿¡£
51 .TP
52 .B \-f \fIfile\fP
53 \fIfile\fP ¤¬Â¸ºß¤·¡¢Ä̾ï¥Õ¥¡¥¤¥ë (regular file) ¤Ç¤¢¤ì¤Ð¿¿¡£
54 .TP
55 .B \-h \fIfile\fP
56 .TP
57 .B \-L \fIfile\fP
58 \fIfile\fP ¤¬Â¸ºß¤·¡¢¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ç¤¢¤ì¤Ð¿¿¡£
59 .TP
60 .B \-p \fIfile\fP
61 \fIfile\fP ¤¬Â¸ºß¤·¡¢Ì¾Á°ÉÕ¤­¥Ñ¥¤¥× (named pipe) ¤Ç¤¢¤ì¤Ð¿¿¡£
62 .TP
63 .B \-S \fIfile\fP
64 \fIfile\fP ¤¬Â¸ºß¤·¡¢¥½¥±¥Ã¥È¤Ç¤¢¤ì¤Ð¿¿¡£
65 .TP
66 .B \-t [\fIfd\fP]
67 .I fd
68 ¤¬Ã¼Ëö¤Ç¥ª¡¼¥×¥ó¤µ¤ì¤Æ¤¤¤ì¤Ð¿¿¡£
69 .I fd
70 ¤¬¾Êά¤µ¤ì¤¿¾ì¹ç¤Î¥Ç¥Õ¥©¥ë¥ÈÃͤϠ1 (ɸ½à½ÐÎÏ)¡£
71
72 .SS ¥Õ¥¡¥¤¥ë¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤Î¥Æ¥¹¥È
73 .TP
74 .B \-g \fIfile\fP
75 \fIfile\fP ¤¬Â¸ºß¤·¡¢set GID ¤µ¤ì¤Æ¤¤¤ì¤Ð¿¿¡£
76 .TP
77 .B \-k \fIfile\fP
78 \fIfile\fP ¤¬Â¸ºß¤·¡¢ sticky ¥Ó¥Ã¥È¤¬Î©¤Ã¤Æ¤¤¤ì¤Ð¿¿¡£
79 .TP
80 .B \-r \fIfile\fP
81 \fIfile\fP ¤¬Â¸ºß¤·¡¢Æɤ߼è¤ê²Äǽ¤Ç¤¢¤ì¤Ð¿¿¡£
82 .TP
83 .B \-u \fIfile\fP
84 \fIfile\fP ¤¬Â¸ºß¤·¡¢ set SUID ¤µ¤ì¤Æ¤¤¤ì¤Ð¿¿¡£
85 .TP
86 .B \-w \fIfile\fP
87 \fIfile\fP ¤¬Â¸ºß¤·¡¢½ñ¤­¹þ¤ß²Äǽ¤Ç¤¢¤ì¤Ð¿¿¡£
88 .TP
89 .B \-x \fIfile\fP
90 \fIfile\fP ¤¬Â¸ºß¤·¡¢¼Â¹Ô²Äǽ¤Ç¤¢¤ì¤Ð¿¿¡£
91 .TP
92 .B \-O \fIfile\fP
93 \fIfile\fP ¤¬Â¸ºß¤·¡¢¸½ºß¤Î¼Â¸ú¥æ¡¼¥¶¡¼ id ¤Ë¤è¤ë½êÍ­¤Ç¤¢¤ì¤Ð¿¿¡£
94 .TP
95 .B \-G \fIfile\fP
96 \fIfile\fP ¤¬Â¸ºß¤·¡¢¸½ºß¤Î¼Â¸ú¥°¥ë¡¼¥× id ¤Ë¤è¤ë½êÍ­¤Ç¤¢¤ì¤Ð¿¿¡£
97
98 .SS ¥Õ¥¡¥¤¥ëÆÃÀ­¤Î¥Æ¥¹¥È
99 .TP
100 .B \-e \fIfile\fP
101 \fIfile\fP ¤¬Â¸ºß¤¹¤ì¤Ð¿¿¡£
102 .TP
103 .B \-s \fIfile\fP
104 \fIfile\fP ¤¬Â¸ºß¤·¡¢¥µ¥¤¥º¤¬ 0 ¤è¤êÂ礭¤±¤ì¤Ð¿¿¡£
105 .TP
106 \fIfile1\fP \-\fBnt\fP \fIfile2\fP
107 \fIfile1\fP ¤¬ \fIfile2\fP ¤è¤ê (½¤Àµ»þ¹ï¤ÇÈæ³Ó¤·¤Æ) ¿·¤·¤±¤ì¤Ð¿¿¡£
108 .TP
109 \fIfile1\fP \-\fBot\fP \fIfile2\fP
110 \fIfile1\fP ¤¬ \fIfile2\fP ¤è¤ê¸Å¤±¤ì¤Ð¿¿¡£
111 .TP
112 \fIfile1\fP \fB\-ef\fP \fIfile2\fP
113 \fIfile1\fP ¤È \fIfile2\fP ¤Î¥Ç¥Ð¥¤¥¹ÈÖ¹æ¤È
114 i-¥Î¡¼¥ÉÈֹ椬¶¦¤ËÅù¤·¤±¤ì¤Ð¿¿¡£
115
116 .SS Ê¸»úÎó¤Î¥Æ¥¹¥È
117 .TP
118 .B \fIstring\fP
119 .TP
120 .B \-n \fIstring\fP
121 .I string
122 ¤ÎŤµ¤¬ 0 ¤è¤êÂ礭¤±¤ì¤Ð¿¿¡£
123 .TP
124 .B \-z \fIstring\fP
125 \fIstring\fP ¤ÎŤµ¤¬ 0 ¤Ç¤¢¤ì¤Ð¿¿¡£
126 .TP
127 \fIstring1\fP \fB=\fP \fIstring2\fP
128 Æó¤Ä¤Îʸ»úÎó¤¬Åù¤·¤±¤ì¤Ð¿¿¡£
129 .TP
130 \fIstring1\fP \fB!=\fP \fIstring2\fP
131 Æó¤Ä¤Îʸ»úÎó¤¬Åù¤·¤¯¤Ê¤±¤ì¤Ð¿¿¡£
132
133 .SS ¿ôÃͤΥƥ¹¥È
134 .TP
135 .I arg1 \fBOP\fP arg2
136 .SM
137 .B OP
138 ¤Ï
139 .BR \-eq ,
140 .BR \-ne ,
141 .BR \-lt ,
142 .BR \-le ,
143 .BR \-gt ,
144 .BR \-ge
145 ¤Î¤¤¤º¤ì¤«¡£
146 ¤³¤ì¤é¤ÎÂå¿ôÆó¹à±é»»»Ò¤Ï¡¢
147 ¤½¤ì¤¾¤ì \fIarg1\fP ¤¬ \fIarg2\fP (¤ËÅù¤·¤¤¡¢¤ËÅù¤·¤¯¤Ê¤¤¡¢¤è¤ê¾®¤µ¤¤¡¢
148 ¤è¤ê¾®¤µ¤¤¤«Åù¤·¤¤¡¢¤è¤êÂ礭¤¤¡¢¤è¤êÂ礭¤¤¤«Åù¤·¤¤) ¾ò·ï¤òËþ¤¿¤»¤Ð¿¿¡£
149 .I arg1
150 ¤ª¤è¤Ó
151 .I arg2
152 ¤ÏÀµ¤ÎÀ°¿ô¡¢Éé¤ÎÀ°¿ô¤ò¤È¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
153 ¤Þ¤¿ \fB\-l\fP \fIstring\fP ¤È¤¤¤¦Æüì¤Ê¼°¤ò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¡¢
154 ¤³¤Î¾ì¹ç¤Ï
155 .I string
156 ¤ÎŤµ¤È¤Ê¤ë¡£
157
158 .SS ¥Æ¥¹¥È¤ÎÏÀÍý·ë¹ç
159 .TP
160 .B ! \fIexpr\fP
161 .I expr
162 ¤¬µ¶¤Ç¤¢¤ì¤Ð¿¿¡£
163 .TP
164 \fIexpr1\fP \-\fBa\fP \fIexpr2\fP
165 .I expr1
166 ¤È
167 .I expr2
168 ¤ÎξÊý¤¬¿¿¤Ç¤¢¤ì¤Ð¿¿¡£
169 .TP
170 \fIexpr1\fP \-\fBo\fP \fIexpr2\fP
171 .I expr1
172 ¤«
173 .I expr2
174 ¤Î¤É¤Á¤é¤«¤¬¿¿¤Ç¤¢¤ì¤Ð¿¿¡£
175 .PD 1
176 .SH ¥ª¥×¥·¥ç¥ó
177 GNU
178 .B test
179 ¤¬°ú¿ô°ì¤Ä¤À¤±¤Çµ¯Æ°¤µ¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢
180 °Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤¬Ç§¼±¤µ¤ì¤ë:
181 .TP
182 .B "\-\-help"
183 ɸ½à½ÐÎϤ˻ÈÍÑÊýË¡¤Î¥á¥Ã¥»¡¼¥¸¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
184 .TP
185 .B "\-\-version"
186 ɸ½à½ÐÎϤ˥С¼¥¸¥ç¥ó¾ðÊó¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
187 .SH Ãí°Õ
188 ¥×¥í¥°¥é¥à¤Î¥Ð¥°¤Ë¤Ä¤¤¤Æ¤Ï bug-sh-utils@gnu.org ¤ËÊó¹ð¤·¤Æ¤¯¤À¤µ¤¤¡£
189 ¥Ú¡¼¥¸¤Î¹¹¿·¤Ï Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com> ¤¬¹Ô¤Ã¤Æ¤¤¤Þ¤¹¡£