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
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.
9 .\" (C) 1999-2002 Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>
12 .\" man pages are NOT obsolete!
13 .\" <ragnar@ragnar-hojland.com>
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>
18 .TH test 1 "18 June 2002" "GNU Shell Utilities 2.1"
20 test \- ¥Õ¥¡¥¤¥ë·Á¼°¤Î¥Á¥§¥Ã¥¯¤äÃͤÎÈæ³Ó¤ò¹Ô¤¦
24 .B test [\-\-help] [\-\-version]
29 ¤òɾ²Á¤·¤¿·ë²Ì¤Ë¤è¤Ã¤Æ¡¢ 0 (¿¿) ¤Þ¤¿¤Ï 1 (µ¶)
30 ¤ò½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤È¤·¤ÆÊÖ¤¹¡£
32 ¼°¤Î³ÆÉôʬ¤Ï¤½¤ì¤¾¤ìʬΥ¤µ¤ì¤¿°ú¿ô¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
33 ¼°¤Ïñ¹à¼°¤¢¤ë¤¤¤ÏÆó¹à¼°¤Ç¤¢¤ë¡£
35 ¤Ï¥Õ¥¡¥¤¥ë¤Î¥¹¥Æ¡¼¥¿¥¹Ä´ºº¡¢Ê¸»úÎóÁàºî¡¢¿ôÃͤÎÈæ³Ó±é»»¤ò¹Ô¤¦¤³¤È¤¬¤Ç¤¤ë¡£
37 ¤Û¤È¤ó¤É¤Î¥·¥§¥ë¤Ë¤ÏƱ̾¤ÎÁȤ߹þ¤ß¥³¥Þ¥ó¥É¤¬¤¢¤ë¤Î¤Ç¡¢
38 ñ¤Ë `test' ¤È¤·¤Æ¼Â¹Ô¤¹¤ë¤È¡¢
39 ¤³¤³¤Çµ½Ò¤µ¤ì¤¿¤â¤Î¤È¤Ï°Û¤Ê¤Ã¤¿µ¡Ç½¤Î¤â¤Î¤¬¼Â¹Ô¤µ¤ì¤ë¤À¤í¤¦¡£
40 .SS ¥Õ¥¡¥¤¥ë·Á¼°¤Î¥Æ¥¹¥È
44 \fIfile\fP ¤¬Â¸ºß¤·¡¢¥Ö¥í¥Ã¥¯¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤Ç¤¢¤ì¤Ð¿¿¡£
47 \fIfile\fP ¤¬Â¸ºß¤·¡¢¥¥ã¥é¥¯¥¿¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤Ç¤¢¤ì¤Ð¿¿¡£
50 \fIfile\fP ¤¬Â¸ºß¤·¡¢¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤¢¤ì¤Ð¿¿¡£
53 \fIfile\fP ¤¬Â¸ºß¤·¡¢Ä̾ï¥Õ¥¡¥¤¥ë (regular file) ¤Ç¤¢¤ì¤Ð¿¿¡£
58 \fIfile\fP ¤¬Â¸ºß¤·¡¢¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ç¤¢¤ì¤Ð¿¿¡£
61 \fIfile\fP ¤¬Â¸ºß¤·¡¢Ì¾Á°ÉÕ¤¥Ñ¥¤¥× (named pipe) ¤Ç¤¢¤ì¤Ð¿¿¡£
64 \fIfile\fP ¤¬Â¸ºß¤·¡¢¥½¥±¥Ã¥È¤Ç¤¢¤ì¤Ð¿¿¡£
68 ¤¬Ã¼Ëö¤Ç¥ª¡¼¥×¥ó¤µ¤ì¤Æ¤¤¤ì¤Ð¿¿¡£
70 ¤¬¾Êά¤µ¤ì¤¿¾ì¹ç¤Î¥Ç¥Õ¥©¥ë¥ÈÃÍ¤Ï 1 (ɸ½à½ÐÎÏ)¡£
72 .SS ¥Õ¥¡¥¤¥ë¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤Î¥Æ¥¹¥È
75 \fIfile\fP ¤¬Â¸ºß¤·¡¢set GID ¤µ¤ì¤Æ¤¤¤ì¤Ð¿¿¡£
78 \fIfile\fP ¤¬Â¸ºß¤·¡¢ sticky ¥Ó¥Ã¥È¤¬Î©¤Ã¤Æ¤¤¤ì¤Ð¿¿¡£
81 \fIfile\fP ¤¬Â¸ºß¤·¡¢Æɤ߼è¤ê²Äǽ¤Ç¤¢¤ì¤Ð¿¿¡£
84 \fIfile\fP ¤¬Â¸ºß¤·¡¢ set SUID ¤µ¤ì¤Æ¤¤¤ì¤Ð¿¿¡£
87 \fIfile\fP ¤¬Â¸ºß¤·¡¢½ñ¤¹þ¤ß²Äǽ¤Ç¤¢¤ì¤Ð¿¿¡£
90 \fIfile\fP ¤¬Â¸ºß¤·¡¢¼Â¹Ô²Äǽ¤Ç¤¢¤ì¤Ð¿¿¡£
93 \fIfile\fP ¤¬Â¸ºß¤·¡¢¸½ºß¤Î¼Â¸ú¥æ¡¼¥¶¡¼ id ¤Ë¤è¤ë½êͤǤ¢¤ì¤Ð¿¿¡£
96 \fIfile\fP ¤¬Â¸ºß¤·¡¢¸½ºß¤Î¼Â¸ú¥°¥ë¡¼¥× id ¤Ë¤è¤ë½êͤǤ¢¤ì¤Ð¿¿¡£
98 .SS ¥Õ¥¡¥¤¥ëÆÃÀ¤Î¥Æ¥¹¥È
101 \fIfile\fP ¤¬Â¸ºß¤¹¤ì¤Ð¿¿¡£
104 \fIfile\fP ¤¬Â¸ºß¤·¡¢¥µ¥¤¥º¤¬ 0 ¤è¤êÂ礤±¤ì¤Ð¿¿¡£
106 \fIfile1\fP \-\fBnt\fP \fIfile2\fP
107 \fIfile1\fP ¤¬ \fIfile2\fP ¤è¤ê (½¤Àµ»þ¹ï¤ÇÈæ³Ó¤·¤Æ) ¿·¤·¤±¤ì¤Ð¿¿¡£
109 \fIfile1\fP \-\fBot\fP \fIfile2\fP
110 \fIfile1\fP ¤¬ \fIfile2\fP ¤è¤ê¸Å¤±¤ì¤Ð¿¿¡£
112 \fIfile1\fP \fB\-ef\fP \fIfile2\fP
113 \fIfile1\fP ¤È \fIfile2\fP ¤Î¥Ç¥Ð¥¤¥¹ÈÖ¹æ¤È
114 i-¥Î¡¼¥ÉÈֹ椬¶¦¤ËÅù¤·¤±¤ì¤Ð¿¿¡£
122 ¤ÎŤµ¤¬ 0 ¤è¤êÂ礤±¤ì¤Ð¿¿¡£
125 \fIstring\fP ¤ÎŤµ¤¬ 0 ¤Ç¤¢¤ì¤Ð¿¿¡£
127 \fIstring1\fP \fB=\fP \fIstring2\fP
128 Æó¤Ä¤Îʸ»úÎó¤¬Åù¤·¤±¤ì¤Ð¿¿¡£
130 \fIstring1\fP \fB!=\fP \fIstring2\fP
131 Æó¤Ä¤Îʸ»úÎó¤¬Åù¤·¤¯¤Ê¤±¤ì¤Ð¿¿¡£
135 .I arg1 \fBOP\fP arg2
146 ¤³¤ì¤é¤ÎÂå¿ôÆó¹à±é»»»Ò¤Ï¡¢
147 ¤½¤ì¤¾¤ì \fIarg1\fP ¤¬ \fIarg2\fP (¤ËÅù¤·¤¤¡¢¤ËÅù¤·¤¯¤Ê¤¤¡¢¤è¤ê¾®¤µ¤¤¡¢
148 ¤è¤ê¾®¤µ¤¤¤«Åù¤·¤¤¡¢¤è¤êÂ礤¤¡¢¤è¤êÂ礤¤¤«Åù¤·¤¤) ¾ò·ï¤òËþ¤¿¤»¤Ð¿¿¡£
152 ¤ÏÀµ¤ÎÀ°¿ô¡¢Éé¤ÎÀ°¿ô¤ò¤È¤ë¤³¤È¤¬¤Ç¤¤ë¡£
153 ¤Þ¤¿ \fB\-l\fP \fIstring\fP ¤È¤¤¤¦Æüì¤Ê¼°¤ò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¡¢
164 \fIexpr1\fP \-\fBa\fP \fIexpr2\fP
168 ¤ÎξÊý¤¬¿¿¤Ç¤¢¤ì¤Ð¿¿¡£
170 \fIexpr1\fP \-\fBo\fP \fIexpr2\fP
174 ¤Î¤É¤Á¤é¤«¤¬¿¿¤Ç¤¢¤ì¤Ð¿¿¡£
179 ¤¬°ú¿ô°ì¤Ä¤À¤±¤Çµ¯Æ°¤µ¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢
180 °Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤¬Ç§¼±¤µ¤ì¤ë:
183 ɸ½à½ÐÎϤ˻ÈÍÑÊýË¡¤Î¥á¥Ã¥»¡¼¥¸¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
186 ɸ½à½ÐÎϤ˥С¼¥¸¥ç¥ó¾ðÊó¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
188 ¥×¥í¥°¥é¥à¤Î¥Ð¥°¤Ë¤Ä¤¤¤Æ¤Ï bug-sh-utils@gnu.org ¤ËÊó¹ð¤·¤Æ¤¯¤À¤µ¤¤¡£
189 ¥Ú¡¼¥¸¤Î¹¹¿·¤Ï Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com> ¤¬¹Ô¤Ã¤Æ¤¤¤Þ¤¹¡£