2 \fBshopt\fP [\fB\-pqsu\fP] [\fB\-o\fP] [\fIoptname\fP ...]
3 .\"O Toggle the values of variables controlling optional shell behavior.
4 .\"O With no options, or with the
6 .\"O option, a list of all settable options is displayed, with
7 .\"O an indication of whether or not each is set.
8 .\"O The \fB\-p\fP option causes output to be displayed in a form that
9 .\"O may be reused as input.
10 .\"O Other options have the following meanings:
11 ¥·¥§¥ë¤Î¥ª¥×¥·¥ç¥óÆ°ºî¤òÀ©¸æ¤¹¤ëÊÑ¿ô¤ÎÃͤò¥È¥°¥ë¤µ¤»¤Þ¤¹¡£
12 ¥ª¥×¥·¥ç¥ó¤¬Ìµ¤¤¾ì¹ç¤ä¡¢
14 ¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢
15 ÀßÄê²Äǽ¤Ê¥ª¥×¥·¥ç¥óÁ´¤Æ¤Î¥ê¥¹¥È¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£
16 ɽ¼¨¤ÎºÝ¤Ë¤Ï¡¢¤½¤ì¤¾¤ì¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«¤â¼¨¤µ¤ì¤Þ¤¹¡£
17 \fB\-p\fP ¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¤È¡¢
18 ¥ª¥×¥·¥ç¥ó¤Îɽ¼¨¤Ï¡¢ÆþÎϤȤ·¤ÆºÆÍøÍѤǤ¤ë¥Õ¥©¡¼¥Þ¥Ã¥È¤Ç¹Ô¤ï¤ì¤Þ¤¹¡£
19 ¤½¤Î¾¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢°Ê²¼¤Î°ÕÌ£¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹:
24 .\"O Enable (set) each \fIoptname\fP.
25 \fIoptname\fP ¤ò¤½¤ì¤¾¤ì͸ú¤Ë¤·¤Þ¤¹ (ÀßÄꤷ¤Þ¤¹)¡£
28 .\"O Disable (unset) each \fIoptname\fP.
29 \fIoptname\fP ¤ò¤½¤ì¤¾¤ì̵¸ú¤Ë¤·¤Þ¤¹ (ÀßÄê²ò½ü¤·¤Þ¤¹)¡£
32 .\"O Suppresses normal output (quiet mode); the return status indicates
33 .\"O whether the \fIoptname\fP is set or unset.
34 .\"O If multiple \fIoptname\fP arguments are given with
36 .\"O the return status is zero if all \fIoptnames\fP are enabled; non-zero
38 .\"O NAKANO ¤¦¡¼¤à, silent mode ¤È quiet ¥â¡¼¥É¤Ï¤É¤¦°ã¤¦¤Î¤À¤í¤¦ :-)
39 Ä̾ï¤Î½ÐÎϤò»ß¤á¤Þ¤¹ (ÀŤ«¤Ê¥â¡¼¥É)¡£
40 Êֵѥ¹¥Æ¡¼¥¿¥¹¤Ï¡¢\fIoptname\fP ¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«¤ò¼¨¤·¤Þ¤¹¡£
41 Ê£¿ô¤Î \fIoptname\fP °ú¤¿ô¤È
43 ¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢
44 Á´¤Æ¤Î \fIoptnames\fP ¤¬Í¸ú¤Ç¤¢¤ë»þ¤ËÊֵѥ¹¥Æ¡¼¥¿¥¹¤¬ 0 ¤È¤Ê¤ê¤Þ¤¹¡£
45 ¤½¤ì°Ê³°¤Î»þ¤Ë¤Ï¡¢0 ¤Ç¤Ê¤¤ÃͤȤʤê¤Þ¤¹¡£
48 .\"O Restricts the values of \fIoptname\fP to be those defined for the
53 \fIoptname\fP ¤ÎÃͤò¡¢ÁȤ߹þ¤ß¥³¥Þ¥ó¥É
57 ¥ª¥×¥·¥ç¥ó¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤â¤Î¤ËÀ©¸Â¤·¤Þ¤¹¡£
64 .\"O is used with no \fIoptname\fP arguments, the display is limited to
65 .\"O those options which are set or unset, respectively.
66 .\"O Unless otherwise noted, the \fBshopt\fP options are disabled (unset)
68 °ú¤¿ô \fIoptname\fP ̵¤·¤Ç
72 ¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤¿¾ì¹ç¡¢É½¼¨¤µ¤ì¤ë¤â¤Î¤ÏÀßÄꤵ¤ì¤Æ¤¤¤ë¤â¤Î¡¢
73 ¤Þ¤¿¤ÏÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¤â¤Î¤Ë¤½¤ì¤¾¤ìÀ©¸Â¤µ¤ì¤Þ¤¹¡£
74 ÆäËÃǤé¤Ê¤¤¸Â¤ê¡¢\fBshopt\fP ¥ª¥×¥·¥ç¥ó¤Ï
75 ¥Ç¥Õ¥©¥ë¥È¤Ç̵¸ú (ÀßÄê²ò½ü) ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
77 .\"O The return status when listing options is zero if all \fIoptnames\fP
78 .\"O are enabled, non-zero otherwise. When setting or unsetting options,
79 .\"O the return status is zero unless an \fIoptname\fP is not a valid shell
81 ¥ª¥×¥·¥ç¥ó¤ò¥ê¥¹¥Èɽ¼¨¤·¤¿»þ¤ÎÊֵѥ¹¥Æ¡¼¥¿¥¹¤Ï¡¢
82 Á´¤Æ¤Î \fIoptnames\fP ¤¬Í¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï 0 ¤È¤Ê¤ê¤Þ¤¹¡£
83 ¤½¤ì°Ê³°¤Î¾ì¹ç¤Ë¤Ï 0 ¤Ç¤Ê¤¤ÃͤȤʤê¤Þ¤¹¡£
84 ÀßÄê¤Þ¤¿¤ÏÀßÄê¼è¤ê¾Ã¤·¤Î¥ª¥×¥·¥ç¥ó¤Î»þ¤Ë¤Ï¡¢
85 \fIoptname\fP ¤¬ÉÔÀµ¤Ê¥·¥§¥ë¥ª¥×¥·¥ç¥ó¤Ç¤Ê¤±¤ì¤Ð¡¢
86 Êֵѥ¹¥Æ¡¼¥¿¥¹¤Ï 0 ¤È¤Ê¤ê¤Þ¤¹¡£
88 .\"O The list of \fBshopt\fP options is:
89 \fBshopt\fP ¥ª¥×¥·¥ç¥ó¤Î¥ê¥¹¥È¤ò°Ê²¼¤Ë¼¨¤·¤Þ¤¹:
95 .\"O If set, an argument to the
97 .\"O builtin command that
98 .\"O is not a directory is assumed to be the name of a variable whose
99 .\"O value is the directory to change to.
100 ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢ÁȤ߹þ¤ß¥³¥Þ¥ó¥É
102 ¤Ø¤Î°ú¤¿ô¤Ç¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤Ê¤¤¤â¤Î¤ÏÊÑ¿ô¤Î̾Á°¤È¸«¤Ê¤µ¤ì¡¢
103 ¤½¤ÎÃͤ¬Êѹ¹Àè¤Î¥Ç¥£¥ì¥¯¥È¥ê¤È¤Ê¤ê¤Þ¤¹¡£
106 .\"O If set, minor errors in the spelling of a directory component in a
108 .\"O command will be corrected.
111 ¥³¥Þ¥ó¥É¤Î¥Ç¥£¥ì¥¯¥È¥êÍ×ÁǤˤª¤±¤ë¥¹¥Ú¥ë¤Î¤Á¤ç¤Ã¤È¤·¤¿¸í¤ê¤Ï½¤Àµ¤µ¤ì¤Þ¤¹¡£
112 .\"O The errors checked for are transposed characters,
113 .\"O a missing character, and one character too many.
114 ¥Á¥§¥Ã¥¯¤µ¤ì¤ë¸í¤ê¤Ï¡¢Ê¸»ú¤ÎÆþ¤ìÂؤï¤ê¡¦Ê¸»ú¤Î·ç¤±¡¦
115 1 ʸ»ú;ʬ¤Ë¤¢¤ë¤³¤È¤Ç¤¹¡£
116 .\"O If a correction is found, the corrected file name is printed,
117 .\"O and the command proceeds.
118 .\"O This option is only used by interactive shells.
119 ÄûÀµ¤Ç¤¤¿¾ì¹ç¤Ë¤Ï¡¢ÄûÀµ¸å¤Î¥Õ¥¡¥¤¥ë̾¤¬É½¼¨¤µ¤ì¡¢
120 ¥³¥Þ¥ó¥É¤Ï³¤±¤Æ¼Â¹Ô¤µ¤ì¤Þ¤¹¡£
121 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬»È¤ï¤ì¤ë¤Î¤ÏÂÐÏÃŪ¥·¥§¥ë¤À¤±¤Ç¤¹¡£
124 .\"O If set, \fBbash\fP checks that a command found in the hash
125 .\"O table exists before trying to execute it. If a hashed command no
126 .\"O longer exists, a normal path search is performed.
128 \fBbash\fP ¤Ï¥Ï¥Ã¥·¥åɽ¤Ç¸«¤Ä¤±¤¿¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë
129 ¼ÂºÝ¤Ë¸ºß¤¹¤ë¤«¤É¤¦¤«¤ò¥Á¥§¥Ã¥¯¤·¤Þ¤¹¡£
130 ¥Ï¥Ã¥·¥å¤µ¤ì¤Æ¤¤¤ë¥³¥Þ¥ó¥É¤¬´û¤Ë̵¤¯¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢
131 Ä̾ï¤Î¥Ñ¥¹¸¡º÷¤¬¹Ô¤ï¤ì¤Þ¤¹¡£
134 .\"O If set, \fBbash\fP checks the window size after each command
135 .\"O and, if necessary, updates the values of
141 ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢\fBbash\fP ¤Ï¥³¥Þ¥ó¥É¤Î¼Â¹Ô¸å¤Ë
142 Ëè²ó¥¦¥£¥ó¥É¥¦¤ÎÂ礤µ¤ò¥Á¥§¥Ã¥¯¤·¡¢É¬Íפ˱þ¤¸¤Æ
153 .\"O attempts to save all lines of a multiple-line
154 .\"O command in the same history entry. This allows
155 .\"O easy re-editing of multi-line commands.
158 ¤ÏÊ£¿ô¹Ô¤Ëʬ¤«¤ì¤Æ¤¤¤ë¥³¥Þ¥ó¥É¤ÎÁ´¤Æ¤Î¹Ô¤ò¡¢
159 Ʊ¤¸ÍúÎò¥¨¥ó¥È¥ê¤ËÊݸ¤·¤è¤¦¤È¤·¤Þ¤¹¡£
160 ¤³¤ì¤ò»È¤¦¤È¡¢Ê£¿ô¹Ô¤Ëʬ¤«¤ì¤Æ¤¤¤ë¥³¥Þ¥ó¥É¤ÎºÆÊÔ½¸¤¬Íưפˤʤê¤Þ¤¹¡£
165 .\"O includes filenames beginning with a `.' in the results of pathname
169 ¤Ï `.' ¤Ç»Ï¤Þ¤ë¥Õ¥¡¥¤¥ë̾¤ò¥Ñ¥¹Ì¾Å¸³«¤Î·ë²Ì¤Ë´Þ¤á¤Þ¤¹¡£
172 .\"O If set, a non-interactive shell will not exit if
173 .\"O it cannot execute the file specified as an argument to the
175 .\"O builtin command. An interactive shell does not exit if
181 ¤Ø¤Î°ú¤¿ô¤È¤·¤Æ»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¤¬¼Â¹Ô¤Ç¤¤Ê¤¯¤Æ¤â¡¢
182 ÂÐÏÃŪ¤Ç¤Ê¤¤¥·¥§¥ë¤¬½ªÎ»¤·¤Þ¤»¤ó¡£
185 ¤Ë¼ºÇÔ¤·¤Æ¤â½ªÎ»¤·¤Þ¤»¤ó¡£
188 .\"O If set, aliases are expanded as described above under
191 .\"O This option is enabled by default for interactive shells.
192 ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¥¨¥¤¥ê¥¢¥¹¤¬Á°½Ò¤Î
195 ¥»¥¯¥·¥ç¥ó¤ÇÀâÌÀ¤·¤¿¤è¤¦¤ËŸ³«¤µ¤ì¤Þ¤¹¡£
196 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢ÂÐÏÃŪ¤Ê¥·¥§¥ë¤Ç¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç͸ú¤Ç¤¹¡£
199 .\"O If set, the extended pattern matching features described above under
200 .\"O \fBPathname Expansion\fP are enabled.
201 ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢³ÈÄ¥¤µ¤ì¤¿¥Ñ¥¿¡¼¥ó¥Þ¥Ã¥Á¥ó¥°µ¡Ç½¤¬Í¸ú¤Ë¤Ê¤ê¤Þ¤¹¡£
202 ¤³¤ì¤Ë¤Ä¤¤¤Æ¤Ï¡¢Á°½Ò¤Î\fB¥Ñ¥¹Ì¾Å¸³«\fP¤ÇÀâÌÀ¤·¤Æ¤¤¤Þ¤¹¡£
205 .\"O If set, the history list is appended to the file named by the value
208 .\"O variable when the shell exits, rather than overwriting the file.
209 ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¥·¥§¥ë¤Î½ªÎ»»þ¤ËÍúÎò¥ê¥¹¥È¤¬ÊÑ¿ô
211 ¤ÎÃͤǻØÄꤷ¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¤ËÄɲ䵤ì¤Þ¤¹¡£
212 ¥Õ¥¡¥¤¥ë¤Ø¤Î¾å½ñ¤¤Ï¹Ô¤ï¤ì¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£
217 .\"O is being used, a user is given the opportunity to re-edit a
218 .\"O failed history substitution.
219 ¤³¤ÎÊÑ¿ô¤¬ÀßÄꤵ¤ì¤Æ¤ª¤ê¡¢¤«¤Ä
221 ¤¬»È¤ï¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¥æ¡¼¥¶¤Ï¼ºÇÔ¤·¤¿ÍúÎòÃÖ´¹¤òºÆÊÔ½¸¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
226 .\"O is being used, the results of history substitution are not immediately
227 .\"O passed to the shell parser. Instead, the resulting line is loaded into
228 .\"O the \fBreadline\fP editing buffer, allowing further modification.
229 ¤³¤ÎÊÑ¿ô¤¬ÀßÄꤵ¤ì¤Æ¤ª¤ê¡¢¤«¤Ä
231 ¤¬»È¤ï¤ì¤Æ¤¤¤ë¾ì¹ç¡¢ÍúÎòÃÖ´¹¤Î·ë²Ì¤Ï¨ºÂ¤Ë¤Ï¥·¥§¥ë¤Î¥Ñ¡¼¥¶¤ËÅϤµ¤ì¤Þ¤»¤ó¡£
232 ¤½¤ÎÂå¤ï¤ê¡¢·ë²Ì¤È¤·¤ÆÆÀ¤é¤ì¤¿¹Ô¤Ï \fBreadline\fP ¤ÎÊÔ½¸¥Ð¥Ã¥Õ¥¡¤Ë
233 Æɤ߹þ¤Þ¤ì¡¢¤µ¤é¤Ë½¤Àµ¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
238 .\"O is being used, \fBbash\fP will attempt to perform hostname completion when a
239 .\"O word containing a \fB@\fP is being completed (see
245 .\"O This is enabled by default.
246 ¤³¤ÎÊÑ¿ô¤¬ÀßÄꤵ¤ì¤Æ¤ª¤ê¡¢¤«¤Ä
248 ¤¬»È¤ï¤ì¤Æ¤¤¤ë¾ì¹ç¡¢\fBbash\fP ¤Ï\fB@\fP ¤ò´Þ¤àñ¸ì¤òÊä´°¤¹¤ë»þ¤Ë
249 ¥Û¥¹¥È̾Êä´°¤ò¼Â¹Ô¤·¤è¤¦¤È¤·¤Þ¤¹ (Á°½Ò¤Î
251 .B READLINE ¥é¥¤¥Ö¥é¥ê
254 ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤)¡£
255 ¤³¤ì¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç͸ú¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
258 .\"O If set, \fBbash\fP will send
261 .\"O to all jobs when an interactive login shell exits.
262 ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢\fBbash\fP ¤ÏÂÐÏÃŪ¤Ê¥í¥°¥¤¥ó¥·¥§¥ë¤ò½ªÎ»¤¹¤ë»þ¤Ë¡¢
268 .B interactive_comments
269 .\"O If set, allow a word beginning with
271 .\"O to cause that word and all remaining characters on that
272 .\"O line to be ignored in an interactive shell (see
275 .\"O above). This option is enabled by default.
278 ¤Ç»Ï¤Þ¤ëñ¸ì¤Ë¤Ä¤¤¤Æ¡¢¤½¤Îñ¸ì¤È¤½¤Î¹Ô¤Î»Ä¤ê¤Îʸ»ú¤ò
279 ÂÐÏÃŪ¥·¥§¥ë¤Ë̵»ë¤µ¤»¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹
283 ¥»¥¯¥·¥ç¥ó¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤)¡£
284 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç͸ú¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
289 .\"O option is enabled, multi-line commands are saved to the history with
290 .\"O embedded newlines rather than using semicolon separators where possible.
293 ¥ª¥×¥·¥ç¥ó¤¬Í¸ú¤Ê¤é¤Ð¡¢Ê£¿ô¹Ô¤Ëʬ¤«¤ì¤Æ¤¤¤ë¥³¥Þ¥ó¥É¤Ï¡¢
294 ¥»¥ß¥³¥í¥ó¤Ç¶èÀÚ¤é¤ì¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢
295 ¤Ç¤¤ë¸Â¤êÅÓÃæ¤Ë²þ¹Ô¤òËä¤á¹þ¤à¤³¤È¤ÇÍúÎò¤ËÊݸ¤µ¤ì¤Þ¤¹¡£
298 .\"O If set, and a file that \fBbash\fP is checking for mail has been
299 .\"O accessed since the last time it was checked, the message ``The mail in
300 .\"O \fImailfile\fP has been read'' is displayed.
301 ÀßÄꤵ¤ì¤Æ¤ª¤ê¡¢¤«¤Ä \fBbash\fP ¤¬¥á¡¼¥ë¤ò¥Á¥§¥Ã¥¯¤¹¤ë¥Õ¥¡¥¤¥ë¤¬
302 Á°²ó¤Î¥Á¥§¥Ã¥¯°Ê¹ß¤Ë¥¢¥¯¥»¥¹¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢
303 ¥á¥Ã¥»¡¼¥¸ ``The mail in \fImailfile\fP has been read'' ¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£
305 .B no_empty_cmd_completion
310 .\"O will not attempt to search the \fBPATH\fP for possible completions when
311 .\"O completion is attempted on an empty line.
315 ²¿¤âÆþÎϤµ¤ì¤Æ¤¤¤Ê¤¤¹Ô¤Ç¥³¥Þ¥ó¥ÉÊä´°¤ò¤µ¤»¤è¤¦¤È¤·¤¿¤È¤¤Ë¡¢
317 ¤ÏÊä´°¤Î¤¿¤á¤Ë \fBPATH\fP ¤ò¸¡º÷¤·¤è¤¦¤È¤·¤Þ¤»¤ó¡£
322 .\"O matches filenames in a case\-insensitive fashion when performing pathname
324 .\"O .B Pathname Expansion
331 ¥Õ¥¡¥¤¥ë̾¤ÎÂçʸ»ú¤È¾®Ê¸»ú¤ò¶èÊ̤»¤º¤Ë¥Þ¥Ã¥Á¥ó¥°¤ò¹Ô¤¤¤Þ¤¹¡£
336 .\"O allows patterns which match no
338 .\"O .B Pathname Expansion
340 .\"O to expand to a null string, rather than themselves.
343 ¤Ï¤É¤Î¥Õ¥¡¥¤¥ë¤Ë¤â¥Þ¥Ã¥Á¤·¤Ê¤¤¥Ñ¥¿¡¼¥ó (Á°½Ò¤Î
345 ¤ò»²¾È) ¤ò¡¢¤½¤Îʸ»úÎ󼫿ȤǤϤʤ¯¡¢¶õʸ»úÎó¤ËŸ³«¤·¤Þ¤¹¡£
348 .\"O If set, the programmable completion facilities (see
349 .\"O \fBProgrammable Completion\fP above) are enabled.
350 .\"O This option is enabled by default.
351 ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¥×¥í¥°¥é¥àÊä´°µ¡Ç½
352 (Á°½Ò¤Î\fB¥×¥í¥°¥é¥àÊä´°\fP¤ò»²¾È) ¤¬Í¸ú¤Ë¤Ê¤ê¤Þ¤¹¡£
353 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç͸ú¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
356 .\"O If set, prompt strings undergo variable and parameter expansion after
357 .\"O being expanded as described in
360 .\"O above. This option is enabled by default.
361 ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¥×¥í¥ó¥×¥Èʸ»úÎó¤ËÂФ·¤ÆÊÑ¿ôŸ³«¤È¥Ñ¥é¥á¡¼¥¿Å¸³«¤¬
362 ¹Ô¤ï¤ì¤Þ¤¹¡£¤³¤ÎŸ³«¤ÏÁ°½Ò¤Î
365 ¥»¥¯¥·¥ç¥ó¤ÇÀâÌÀ¤·¤¿Å¸³«¤¬¹Ô¤ï¤ì¤¿¸å¤Ë¹Ô¤ï¤ì¤Þ¤¹¡£
366 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç͸ú¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
369 .\"O The shell sets this option if it is started in restricted mode (see
371 .\"O .B "RESTRICTED SHELL"
373 .\"O The value may not be changed.
374 ¥·¥§¥ë¤¬À©¸Â¥â¡¼¥É¤Çµ¯Æ°¤µ¤ì¤¿¾ì¹ç¡¢
375 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬ÀßÄꤵ¤ì¤Þ¤¹ (¸å½Ò¤Î
378 ¥»¥¯¥·¥ç¥ó¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤)¡£
379 ¤³¤ÎÃͤòÊѹ¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
380 .\"O This is not reset when the startup files are executed, allowing
381 .\"O the startup files to discover whether or not a shell is restricted.
382 ¤³¤ì¤Ïµ¯Æ°¥Õ¥¡¥¤¥ë¤¬¼Â¹Ô¤µ¤ì¤ë»þ¤Ë¤â¥ê¥»¥Ã¥È¤µ¤ì¤Ê¤¤¤Î¤Ç¡¢¥·¥§¥ë¤¬À©¸Â
383 ÉÕ¤¤«¤É¤¦¤«¤òµ¯Æ°¥Õ¥¡¥¤¥ëÆâÉô¤ÇÃΤ뤳¤È¤¬¤Ç¤¤Þ¤¹¡£
388 .\"O builtin prints an error message when the shift count exceeds the
389 .\"O number of positional parameters.
390 ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢ÁȤ߹þ¤ß¥³¥Þ¥ó¥É
392 ¤Ë¤ª¤¤¤Æ¥·¥Õ¥È¤Î²ó¿ô¤¬°ÌÃÖÉÕ¤¥Ñ¥é¥á¡¼¥¿¤Î¿ô¤òĶ¤¨¤ë¤È¡¢
393 ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤¬½ÐÎϤµ¤ì¤Þ¤¹¡£
397 .\"O \fBsource\fP (\fB.\fP) builtin uses the value of
400 .\"O to find the directory containing the file supplied as an argument.
401 .\"O This option is enabled by default.
402 ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢ÁȤ߹þ¤ß¥³¥Þ¥ó¥É \fBsource\fP (\fB.\fP) ¤Ï
405 ¤ÎÃͤò»È¤Ã¤Æ¡¢°ú¤¿ô¤È¤·¤ÆÍ¿¤¨¤é¤ì¤¿¥Õ¥¡¥¤¥ë¤ò´Þ¤à¥Ç¥£¥ì¥¯¥È¥ê¤ò¸«¤Ä¤±¤Þ¤¹¡£
406 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç͸ú¤Ç¤¹¡£
409 .\"O If set, the \fBecho\fP builtin expands backslash-escape sequences
412 ÁȤ߹þ¤ß¥³¥Þ¥ó¥É \fBecho\fP ¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç
413 ¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥å¤Ë¤è¤ë¥¨¥¹¥±¡¼¥×¥·¡¼¥±¥ó¥¹¤òŸ³«¤·¤Þ¤¹¡£
416 \fBsuspend\fP [\fB\-f\fP]
417 .\"O Suspend the execution of this shell until it receives a
422 .\"O option says not to complain if this is
423 .\"O a login shell; just suspend anyway. The return status is 0 unless
424 .\"O the shell is a login shell and
426 .\"O is not supplied, or if job control is not enabled.
429 ¥·¥°¥Ê¥ë¤ò¼õ¤±¼è¤ë¤Þ¤Ç¡¢¥·¥§¥ë¤Î¼Â¹Ô¤ò¥µ¥¹¥Ú¥ó¥É¤·¤Þ¤¹¡£
431 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤¿¾ì¹ç¡¢¥·¥§¥ë¤¬¥í¥°¥¤¥ó¥·¥§¥ë¤Ç¤¢¤Ã¤Æ¤â·Ù¹ð¤ò½Ð¤·¤Þ¤»¤ó¡£
432 ¤¿¤À¤·¡¢¤É¤Á¤é¤Ë¤»¤è¥µ¥¹¥Ú¥ó¥É¤Ï¤·¤Þ¤¹¡£
433 ¥·¥§¥ë¤¬¥í¥°¥¤¥ó¥·¥§¥ë¤Ç¤¢¤ê¡¢¤«¤Ä
435 ¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤È¥¸¥ç¥ÖÀ©¸æ¤¬Í¸ú¤Ç¤Ê¤¤¾ì¹ç¤Ç¤Ê¤±¤ì¤Ð¡¢
436 Êֵѥ¹¥Æ¡¼¥¿¥¹¤Ï 0 ¤Ç¤¹¡£
439 \fBtest\fP \fIexpr\fP
441 \fB[\fP \fIexpr\fP \fB]\fP
442 .\"O Return a status of 0 or 1 depending on
443 .\"O the evaluation of the conditional expression
447 ¤òɾ²Á¤·¤¿·ë²Ì¤Ë´ð¤Å¤¤¤Æ¡¢¥¹¥Æ¡¼¥¿¥¹ 0 ¤Þ¤¿¤Ï 1 ¤òÊÖ¤·¤Þ¤¹¡£
448 .\"O Each operator and operand must be a separate argument.
449 .\"O Expressions are composed of the primaries described above under
451 .\"O .BR "CONDITIONAL EXPRESSIONS" .
452 ¤½¤ì¤¾¤ì¤Î±é»»»Ò¤È¥ª¥Ú¥é¥ó¥É¤ÏÊÌ¡¹¤Î°ú¤¿ô¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
456 ¥»¥¯¥·¥ç¥ó¤ÇÀâÌÀ¤·¤¿¥×¥é¥¤¥Þ¥ê¤Ç¹½À®¤µ¤ì¤Þ¤¹¡£
459 .\"O Expressions may be combined using the following operators, listed
460 .\"O in decreasing order of precedence.
461 ¼°¤Ï°Ê²¼¤Ë¼¨¤¹±é»»»Ò¤ò»È¤Ã¤Æ·ë¹ç¤µ¤»¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
462 ¥ê¥¹¥È¤ÏÍ¥ÀèÅ٤ι⤤½ç¤Ë¼¨¤·¤Æ¤¤¤Þ¤¹¡£
471 ¤¬µ¶¤Ê¤é¤Ð¿¿¤Ë¤Ê¤ê¤Þ¤¹¡£
474 .\"O Returns the value of \fIexpr\fP.
475 .\"O This may be used to override the normal precedence of operators.
476 \fIexpr\fP ¤ÎÃͤòÊÖ¤·¤Þ¤¹¡£
477 ¤³¤ì¤ò»È¤Ã¤Æ¡¢Ä̾ï¤Î±é»»»Ò¤ÎÍ¥ÀèÅÙ¤ò¾å½ñ¤¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
479 \fIexpr1\fP \-\fBa\fP \fIexpr2\fP
488 ¤¬Î¾Êý¤È¤â¿¿¤Ê¤é¤Ð¿¿¤Ë¤Ê¤ê¤Þ¤¹¡£
490 \fIexpr1\fP \-\fBo\fP \fIexpr2\fP
499 ¤Î¤¤¤º¤ì¤«¤¬¿¿¤Ê¤é¤Ð¿¿¤Ë¤Ê¤ê¤Þ¤¹¡£
502 \fBtest\fP and \fB[\fP
503 .\"O \fBtest\fP and \fB[\fP evaluate conditional
504 .\"O expressions using a set of rules based on the number of arguments.
505 °ú¤¿ô¤Î¿ô¤Ë´ð¤Å¤¤¤¿µ¬Â§¤Î½¸¹ç¤òÍѤ¤¤Æ¾ò·ï¼°¤òɾ²Á¤·¤Þ¤¹¡£
512 .\"O The expression is false.
517 .\"O The expression is true if and only if the argument is not null.
518 °ú¤¿ô¤¬¶õ¤Ç¤Ê¤¤¾ì¹ç¤Ë¸Â¤ê¿¿¤Ë¤Ê¤ê¤Þ¤¹¡£
522 .\"O If the first argument is \fB!\fP, the expression is true if and
523 .\"O only if the second argument is null.
524 .\"O If the first argument is one of the unary conditional operators listed above
527 .\"O .BR "CONDITIONAL EXPRESSIONS" ,
528 .\"O the expression is true if the unary test is true.
529 .\"O If the first argument is not a valid unary conditional operator, the expression
531 ºÇ½é¤Î°ú¤¿ô¤¬ \fB!\fP ¤Ê¤é¤Ð¡¢
532 2 ÈÖÌܤΰú¤¿ô¤¬¶õ¤Î¾ì¹ç¤Ë¸Â¤ê¿¿¤Ë¤Ê¤ê¤Þ¤¹¡£
536 ¥»¥¯¥·¥ç¥ó¤ÇÀâÌÀ¤·¤¿Ã±¹à¾ò·ï±é»»»Ò¤Î¤¤¤º¤ì¤«¤Ç¤¢¤ì¤Ð¡¢
537 ñ¹à¤Îɾ²Á¤¬¿¿¤Î¾ì¹ç¤Ë¼°¤Ï¿¿¤È¤Ê¤ê¤Þ¤¹¡£
538 ºÇ½é¤Î°ú¤¿ô¤¬Àµ¤·¤¤Ã±¹à¾ò·ï±é»»»Ò¤Ç¤Ê¤±¤ì¤Ð¡¢¼°¤Ïµ¶¤È¤Ê¤ê¤Þ¤¹¡£
542 .\"O If the second argument is one of the binary conditional operators listed above
545 .\"O .BR "CONDITIONAL EXPRESSIONS" ,
546 .\"O the result of the expression is the result of the binary test using
547 .\"O the first and third arguments as operands.
548 .\"O If the first argument is \fB!\fP, the value is the negation of
549 .\"O the two-argument test using the second and third arguments.
550 .\"O If the first argument is exactly \fB(\fP and the third argument is
551 .\"O exactly \fB)\fP, the result is the one-argument test of the second
553 .\"O Otherwise, the expression is false.
554 .\"O The \fB\-a\fP and \fB\-o\fP operators are considered binary operators
556 2 ÈÖÌܤΰú¤¿ô¤¬¡¢´û¤Ë
559 ¥»¥¯¥·¥ç¥ó¤ÇÀâÌÀ¤·¤¿ÆóÃ;ò·ï±é»»»Ò¤Î¤¤¤º¤ì¤«¤Ç¤¢¤ì¤Ð¡¢
560 ºÇ½é¤È 3 ÈÖÌܤΰú¤¿ô¤ò¥ª¥Ú¥é¥ó¥É¤È¤·¤Æ»È¤Ã¤¿
561 ÆóÃÍɾ²Á¤Î·ë²Ì¤¬¼°¤Î·ë²Ì¤È¤Ê¤ê¤Þ¤¹¡£
562 ºÇ½é¤Î°ú¤¿ô¤¬ \fB!\fP ¤Ç¤¢¤ì¤Ð¡¢2 ÈÖÌÜ¤È 3 ÈÖÌܤΰú¤¿ô¤ò»È¤Ã¤¿¡¢
563 °ú¤¿ô 2 ¤Ä¤Îɾ²Á¤Î·ë²Ì¤òÈÝÄꤷ¤¿¤â¤Î¤¬ÃͤȤʤê¤Þ¤¹¡£
564 ºÇ½é¤Î°ú¤¿ô¤¬ \fB(\fP ¤Ç¤¢¤ê¡¢3 ÈÖÌܤΰú¤¿ô¤¬ \fB)\fP ¤Ê¤é¤Ð¡¢
565 2 ÈÖÌܤΰú¤¿ô¤ò»È¤Ã¤Æ°ú¤¿ô 1 ¤Ä¤Îɾ²Á¤ò¹Ô¤Ã¤¿Ãͤ¬·ë²Ì¤È¤Ê¤ê¤Þ¤¹¡£
566 ¤³¤ì¤é°Ê³°¤Î¾ì¹ç¤Ë¤Ï¡¢¼°¤Ïµ¶¤È¤Ê¤ê¤Þ¤¹¡£
567 ¤³¤Î¾ì¹ç¤Ë¤ª¤¤¤Æ¤Ï¡¢\fB\-a\fP ¤È \fB\-o\fP ¤ÏÆóÃͱ黻»Ò¤È¤·¤Æ°·¤ï¤ì¤Þ¤¹¡£
571 .\"O If the first argument is \fB!\fP, the result is the negation of
572 .\"O the three-argument expression composed of the remaining arguments.
573 .\"O Otherwise, the expression is parsed and evaluated according to
574 .\"O precedence using the rules listed above.
575 ºÇ½é¤Î°ú¤¿ô¤¬ \fB!\fP ¤Ê¤é¤Ð¡¢
576 »Ä¤ê¤Î°ú¤¿ô¤Çºî¤Ã¤¿°ú¤¿ô 3 ¤Ä¤Î¼°¤ÎÃͤòÈÝÄꤷ¤¿¤â¤Î¤¬·ë²Ì¤È¤Ê¤ê¤Þ¤¹¡£
577 ¤½¤ì°Ê³°¤Î¾ì¹ç¤Ë¤Ï¡¢Àè¤Ëµó¤²¤¿µ¬Â§¤ò»È¤Ã¤¿Í¥ÀèÅ٤˽¾¤Ã¤Æ
578 ¼°¤¬Å¸³«¡¦É¾²Á¤µ¤ì¤Þ¤¹¡£
580 .\"O 5 or more arguments
582 .\"O The expression is parsed and evaluated according to precedence
583 .\"O using the rules listed above.
584 Àè¤Ëµó¤²¤¿µ¬Â§¤ò»È¤Ã¤¿Í¥ÀèÅ٤˽¾¤Ã¤Æ¼°¤¬Å¸³«¡¦É¾²Á¤µ¤ì¤Þ¤¹¡£
589 .\"O Print the accumulated user and system times for the shell and
590 .\"O for processes run from the shell. The return status is 0.
591 ¥·¥§¥ë¤È¥·¥§¥ë¤«¤é¼Â¹Ô¤·¤¿¥×¥í¥»¥¹¤Ë¤Ä¤¤¤Æ¡¢
592 ¥æ¡¼¥¶»þ´Ö¤È¥·¥¹¥Æ¥à»þ´Ö¤ò²Ã¤¨¤¿¤â¤Î¤ò½ÐÎϤ·¤Þ¤¹¡£
593 Êֵѥ¹¥Æ¡¼¥¿¥¹¤Ï 0 ¤Ç¤¹¡£
595 \fBtrap\fP [\fB\-lp\fP] [\fIarg\fP] [\fIsigspec\fP ...]
598 .\"O is to be read and executed when the shell receives
603 ¤ò¼õ¤±¼è¤ë¤È¡¢¥³¥Þ¥ó¥É
605 ¤¬Æɤ߹þ¤Þ¤ì¤Æ¡¢¼Â¹Ô¤µ¤ì¤Þ¤¹¡£
610 .\"O all specified signals are
611 .\"O reset to their original values (the values they had
612 .\"O upon entrance to the shell).
617 »ØÄꤵ¤ì¤Æ¤¤¤ë¥·¥°¥Ê¥ë¤ÏÁ´¤ÆºÇ½é¤ÎÃÍ
618 (¥·¥§¥ë¤Îµ¯Æ°»þ¤ËÀßÄꤵ¤ì¤Æ¤¤¤¿ÃÍ) ¤Ë¥ê¥»¥Ã¥È¤µ¤ì¤Þ¤¹¡£
621 .\"O is the null string the signal specified by each
623 .\"O is ignored by the shell and by the commands it invokes.
625 ¤¬¶õʸ»úÎó¤Ç¤¢¤ë¾ì¹ç¡¢¤½¤ì¤¾¤ì¤Î
627 ¤Ç»ØÄꤵ¤ì¤Æ¤¤¤ë¥·¥°¥Ê¥ë¤Ï¡¢
628 ¥·¥§¥ë¤È¥·¥§¥ë¤¬µ¯Æ°¤·¤¿¥³¥Þ¥ó¥É¤«¤é̵»ë¤µ¤ì¤Þ¤¹¡£
631 .\"O is not present and
633 .\"O has been supplied, then the trap commands associated with each
636 .\"O If no arguments are supplied or if only
640 .\"O prints the list of commands associated with each signal number.
644 ¥ª¥×¥·¥ç¥ó¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¡¢
647 ¤ËÂбþ¤¹¤ë trap ¥³¥Þ¥ó¥É¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£
650 ¤À¤±¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¡¢
652 ¤Ï³Æ¥·¥°¥Ê¥ëÈÖ¹æ¤ËÂбþ¤¹¤ë¥³¥Þ¥ó¥É¤Î¥ê¥¹¥È¤ò½ÐÎϤ·¤Þ¤¹¡£
656 .\"O a signal name defined in <\fIsignal.h\fP>, or a signal number.
659 ¤Ï¡¢<\fIsignal.h\fP> ¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ë¥·¥°¥Ê¥ë̾¤Þ¤¿¤Ï¥·¥°¥Ê¥ëÈÖ¹æ¤Ç¤¹¡£
667 .\"O is executed on exit from the shell. If a
674 .\"O is executed after every \fIsimple command\fP (see
676 .\"O .B SHELL GRAMMAR
682 (0) ¤Ç¤¢¤ì¤Ð¡¢¥·¥§¥ë¤Î½ªÎ»»þ¤Ë¥³¥Þ¥ó¥É
689 ¤Ç¤¢¤ì¤Ð¡¢\fIñ½ã¤Ê¥³¥Þ¥ó¥É\fP (Á°½Ò¤Î
692 ¥»¥¯¥·¥ç¥ó¤ò»²¾È) ¤¬½ª¤ï¤ë¤¿¤Ó¤Ë¥³¥Þ¥ó¥É
697 .\"O option causes the shell to print a list of signal names and
698 .\"O their corresponding numbers.
700 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤ë¤È¡¢
701 ¥·¥§¥ë¤Ï¥·¥°¥Ê¥ë̾¤È¤³¤ì¤ËÂбþ¤¹¤ëÈÖ¹æ¤Î¥ê¥¹¥È¤ò½ÐÎϤ·¤Þ¤¹¡£
702 .\"O Signals ignored upon entry to the shell cannot be trapped or reset.
703 .\"O Trapped signals are reset to their original values in a child
704 .\"O process when it is created.
705 ¥·¥§¥ë¤Î¥¨¥ó¥È¥ê¤Ç̵»ë¤µ¤ì¤ë¥·¥°¥Ê¥ë¤Ï¡¢
706 ¥È¥é¥Ã¥×¤¹¤ë¤³¤È¤â¥ê¥»¥Ã¥È¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤»¤ó¡£
707 ¥È¥é¥Ã¥×¤µ¤ì¤¿¥·¥°¥Ê¥ë¤Ï¥ê¥»¥Ã¥È¤µ¤ì¡¢
708 »Ò¥×¥í¥»¥¹¤¬À¸À®¤µ¤ì¤¿»þ¤ÎºÇ½é¤ÎÃͤËÌá¤ê¤Þ¤¹¡£
709 .\"O The return status is false if any
711 .\"O is invalid; otherwise
715 ¤Î¤¤¤º¤ì¤«¤¬ÉÔÀµ¤Ç¤¢¤ì¤Ð¡¢Êֵѥ¹¥Æ¡¼¥¿¥¹¤Ïµ¶¤Ë¤Ê¤ê¤Þ¤¹¡£
720 \fBtype\fP [\fB\-atp\fP] \fIname\fP [\fIname\fP ...]
721 .\"O With no options,
722 .\"O indicate how each
724 .\"O would be interpreted if used as a command name.
725 ¥ª¥×¥·¥ç¥ó̵¤·¤Î¾ì¹ç¤Ë¤Ï¡¢³Æ
727 ¤ò¥³¥Þ¥ó¥É̾¤È¤·¤Æ»È¤Ã¤¿¤È¤¤Ë¡¢¤½¤ì¤¬¤É¤Î¤è¤¦¤Ë²ò¼á¤µ¤ì¤ë¤«¤ò¼¨¤·¤Þ¤¹¡£
732 .\"O prints a string which is one of
741 .\"O is an alias, shell reserved word, function, builtin, or disk file,
746 ¤¬¡¢¥¨¥¤¥ê¥¢¥¹¡¦¥·¥§¥ë¤ÎͽÌó¸ì¡¦´Ø¿ô¡¦
747 ÁȤ߹þ¤ß¥³¥Þ¥ó¥É¡¦¥Ç¥£¥¹¥¯¾å¤Î¥Õ¥¡¥¤¥ë¤Î¾ì¹ç¡¢
749 ¤Ï¤½¤ì¤¾¤ì¤Î¾ì¹ç¤Ë¤Ä¤¤¤Æ
755 ¤È¤¤¤¦Ê¸»úÎó¤ò½ÐÎϤ·¤Þ¤¹¡£
758 .\"O is not found, then nothing is printed, and an exit status of false
761 ¤¬¸«¤Ä¤«¤é¤Ê¤¤¾ì¹ç¤Ï²¿¤â½ÐÎϤµ¤ì¤º¡¢µ¶¤Î½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£
766 .\"O either returns the name of the disk file
767 .\"O that would be executed if
769 .\"O were specified as a command name,
770 .\"O or nothing if \f(CWtype -t name\fP
771 .\"O would not return
778 ¤ò¥³¥Þ¥ó¥É̾¤È¤·¤Æ»ØÄꤷ¤¿¾ì¹ç¤Ë¼Â¹Ô¤µ¤ì¤ë¥Ç¥£¥¹¥¯¥Õ¥¡¥¤¥ë¤Î̾Á°¡¢
779 ¤Þ¤¿¤Ï¶õʸ»úÎó¤òÊÖ¤·¤Þ¤¹¡£
780 ¶õʸ»úÎó¤¬ÊÖ¤µ¤ì¤ë¤Î¤Ï¡¢\f(CWtype -t name\fP ¤¬
783 .\"O If a command is hashed,
785 .\"O prints the hashed value, not necessarily the file that appears
789 ¥³¥Þ¥ó¥É¤¬¥Ï¥Ã¥·¥å¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢
791 ¤Ï¥Ï¥Ã¥·¥å¤µ¤ì¤Æ¤¤¤ëÃͤòɽ¼¨¤·¤Þ¤¹¡£
792 ɽ¼¨¤µ¤ì¤ë¤Î¤Ï¡¢É¬¤º¤·¤â
795 Ãæ¤ÇºÇ½é¤Ë¸½¤ï¤ì¤ë¥Õ¥¡¥¤¥ë¤È¤Ï¸Â¤ê¤Þ¤»¤ó¡£
800 .\"O prints all of the places that contain
801 .\"O an executable named
804 ¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤¿¾ì¹ç¡¢
808 ¤¬¼¨¤¹¼Â¹Ô¥Õ¥¡¥¤¥ë¤¬¤¢¤ë¾ì½ê¤òÁ´¤Æ½ÐÎϤ·¤Þ¤¹¡£
809 .\"O This includes aliases and functions,
810 .\"O if and only if the
812 .\"O option is not also used.
814 ¥ª¥×¥·¥ç¥ó¤¬Æ±»þ¤Ë»È¤ï¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¸Â¤ê¡¢
815 ¥¨¥¤¥ê¥¢¥¹¤ä´Ø¿ô¤â½ÐÎϤµ¤ì¤Þ¤¹¡£
816 .\"O The table of hashed commands is not consulted
820 .\"O returns true if any of the arguments are found, false if
823 ¤ò»È¤¦»þ¤Ë¤Ï¡¢¥Ï¥Ã¥·¥å¤µ¤ì¤Æ¤¤¤ë¥³¥Þ¥ó¥É¤Îɽ¤Ï»²¾È¤µ¤ì¤Þ¤»¤ó¡£
825 ¤Ï¡¢°ú¤¿ô¤Î¤¤¤º¤ì¤«¤¬¸«¤Ä¤«¤ì¤Ð¿¿¤òÊÖ¤·¡¢
826 ¤É¤ì¤â¸«¤Ä¤«¤é¤Ê¤±¤ì¤Ðµ¶¤òÊÖ¤·¤Þ¤¹¡£
828 \fBulimit\fP [\fB\-SHacdflmnpstuv\fP [\fIlimit\fP]]
829 .\"O Provides control over the resources available to the shell and to
830 .\"O processes started by it, on systems that allow such control. The
833 .\"O can be a number in the unit specified for the resource, or the
836 ¤³¤ì¤ò»È¤¦¤È¡¢¥·¥§¥ë¤ª¤è¤Ó¥·¥§¥ë¤¬µ¯Æ°¤¹¤ë¥×¥í¥»¥¹¤¬
837 ÍøÍѤǤ¤ë¥ê¥½¡¼¥¹¤òÀ©¸æ¤Ç¤¤Þ¤¹¡£
838 ¤¿¤À¤·¡¢¤³¤Î¤è¤¦¤ÊÀ©¸æ¤¬¤Ç¤¤ë¥·¥¹¥Æ¥à¤Î¾ì¹ç¤Ë¸Â¤ê¤Þ¤¹¡£
840 ¤ÎÃͤϥ꥽¡¼¥¹¤ËÂФ·¤Æ»ØÄꤵ¤ì¤Æ¤¤¤ëñ°Ì¤Î¿ô¡¢¤Þ¤¿¤Ï
843 .\"O The \fB\-H\fP and \fB\-S\fP options specify that the hard or soft limit is
844 .\"O set for the given resource. A hard limit cannot be increased once it
845 .\"O is set; a soft limit may be increased up to the value of the hard limit.
846 .\"O If neither \fB\-H\fP nor \fB\-S\fP is specified, both the soft and hard
848 \fB\-H\fP ¥ª¥×¥·¥ç¥ó¤È \fB\-S\fP ¥ª¥×¥·¥ç¥ó¤Ï¡¢
849 Í¿¤¨¤é¤ì¤¿¥ê¥½¡¼¥¹¤ËÂФ·¤Æ¶¯¤¤ (hard) À©¸Â¤ä¼å¤¤ (soft) À©¸Â¤òÀßÄꤷ¤Þ¤¹¡£
850 ¶¯¤¤À©¸Â¤Ï°ìÅÙÀßÄꤹ¤ÈÁý¤ä¤¹¤³¤È¤¬¤Ç¤¤Þ¤»¤ó¡£
851 ¼å¤¤À©¸Â¤Ï¶¯¤¤À©¸Â¤ÎÃͤޤǤÏÁý¤ä¤¹¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
852 \fB\-H\fP ¤È \fB\-S\fP ¤¬¤É¤Á¤é¤â»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢
853 ¶¯¤¤À©¸Â¤È¼å¤¤À©¸Â¤¬¤É¤Á¤é¤âÀßÄꤵ¤ì¤Þ¤¹¡£
856 .\"O is omitted, the current value of the soft limit of the resource is
857 .\"O printed, unless the \fB\-H\fP option is given. When more than one
858 .\"O resource is specified, the limit name and unit are printed before the value.
859 .\"O Other options are interpreted as follows:
861 ¤ò¾Êά¤¹¤ë¤È¡¢¥ê¥½¡¼¥¹¤Î¼å¤¤À©¸Â¤Î¸½ºßÃͤ¬É½¼¨¤µ¤ì¤Þ¤¹¡£
862 ¤¿¤À¤·¡¢\fB\-H\fP ¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï½ü¤¤Þ¤¹¡£
863 Ê£¿ô¤Î¥ê¥½¡¼¥¹¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë»þ¤Ï¡¢À©¸Â̾¤Èñ°Ì¤¬ÃͤÎÁ°¤Ë½ÐÎϤµ¤ì¤Þ¤¹¡£
864 ¾¤Î¥ª¥×¥·¥ç¥ó¤Ï°Ê²¼¤Î¤è¤¦¤Ë²ò¼á¤µ¤ì¤Þ¤¹:
869 .\"O All current limits are reported
870 ¸½ºß¤ÎÀ©¸Â¤òÁ´¤ÆÊó¹ð¤·¤Þ¤¹
873 .\"O The maximum size of core files created
874 À¸À®¤µ¤ì¤ë¥³¥¢¥Õ¥¡¥¤¥ë (core) ¤ÎºÇÂ祵¥¤¥º
877 .\"O The maximum size of a process's data segment
878 ¥×¥í¥»¥¹¤Î¥Ç¡¼¥¿¥»¥°¥á¥ó¥È¤ÎºÇÂ祵¥¤¥º
881 .\"O The maximum size of files created by the shell
882 ¥·¥§¥ë¤¬À¸À®¤Ç¤¤ë¥Õ¥¡¥¤¥ë¤ÎºÇÂ祵¥¤¥º
885 .\"O The maximum size that may be locked into memory
886 ¥á¥â¥ê¤Ë¥í¥Ã¥¯¤Ç¤¤ëºÇÂ祵¥¤¥º
889 .\"O The maximum resident set size
890 ¾ïÃ󥻥åȥµ¥¤¥º¤ÎºÇÂçÃÍ
893 .\"O The maximum number of open file descriptors (most systems do not
894 .\"O allow this value to be set)
895 ¥ª¡¼¥×¥ó¤Ç¤¤ë¥Õ¥¡¥¤¥ë¥Ç¥¹¥¯¥ê¥×¥¿¤ÎºÇÂç¿ô
896 (¤Û¤È¤ó¤É¤Î¥·¥¹¥Æ¥à¤Ç¤Ï¡¢¤³¤ÎÃͤòÀßÄꤹ¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó)
899 .\"O The pipe size in 512-byte blocks (this may not be set)
900 512 ¥Ð¥¤¥È¥Ö¥í¥Ã¥¯Ã±°Ì¤Ç¤Î¥Ñ¥¤¥×¤Î¥µ¥¤¥º
901 (¤³¤ì¤ÏÀßÄê¤Ç¤¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó)
904 .\"O The maximum stack size
908 .\"O The maximum amount of cpu time in seconds
909 CPU »þ´Ö¤ÎºÇÂçÎÌ (ÉÃñ°Ì)
912 .\"O The maximum number of processes available to a single user
913 1 ¿Í¤Î¥æ¡¼¥¶¤¬»ÈÍѤǤ¤ëºÇÂç¤Î¥×¥í¥»¥¹¿ô
916 .\"O The maximum amount of virtual memory available to the shell
917 ¥·¥§¥ë¤¬»ÈÍѤǤ¤ëºÇÂç¤Î²¾ÁÛ¥á¥â¥êÎÌ
922 .\"O is given, it is the new value of the specified resource (the
924 .\"O option is display only).
926 ¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¤³¤ì¤Ï»ØÄꤵ¤ì¤¿¥ê¥½¡¼¥¹¤Î¿·¤·¤¤ÃͤȤʤê¤Þ¤¹
929 .\"O If no option is given, then
931 .\"O is assumed. Values are in 1024-byte increments, except for
933 .\"O which is in seconds,
935 .\"O which is in units of 512-byte blocks,
940 .\"O which are unscaled values. The return status is 0
941 .\"O unless an invalid option is encountered, a non-numeric argument
942 .\"O other than \fBunlimited\fP is supplied as \fIlimit\fP, or an
943 .\"O error occurs while setting a new limit.
944 ¥ª¥×¥·¥ç¥ó¤¬Á´¤¯Í¿¤¨¤é¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢
946 ¤¬»ØÄꤵ¤ì¤¿¤â¤Î¤È¸«¤Ê¤µ¤ì¤Þ¤¹¡£
947 ÃÍ¤Ï 1024 ¥Ð¥¤¥Èñ°Ì¤ÇÁý¤¨¤Þ¤¹¤¬¡¢
950 512 ¥Ð¥¤¥È¤Î¥Ö¥í¥Ã¥¯Ã±°Ì¤Ç¤¢¤ë
957 Êֵѥ¹¥Æ¡¼¥¿¥¹¤Ï´ðËÜŪ¤Ë 0 ¤Ç¤¹¤¬¡¢
958 ÉÔÀµ¤Ê¥ª¥×¥·¥ç¥ó¤¬¤¢¤ë¾ì¹ç¡¢
959 \fBunlimited\fP °Ê³°¤Î¿ô»ú¤Ç¤Ê¤¤°ú¤¿ô¤¬ \fIlimit\fP ¤Ë»ØÄꤵ¤ì¤¿¾ì¹ç¡¢
960 ¿·¤·¤¤À©¸Â¤òÀßÄꤹ¤ëºÝ¤Ë¥¨¥é¡¼¤¬µ¯¤¤¿¾ì¹ç¤Ï½ü¤¤Þ¤¹¡£
963 \fBumask\fP [\fB\-p\fP] [\fB\-S\fP] [\fImode\fP]
964 .\"O The user file-creation mask is set to
966 ¥æ¡¼¥¶¤Î¥Õ¥¡¥¤¥ëÀ¸À®¥Þ¥¹¥¯¤Ë
971 .\"O begins with a digit, it
972 .\"O is interpreted as an octal number; otherwise
973 .\"O it is interpreted as a symbolic mode mask similar
974 .\"O to that accepted by
977 ¤¬¿ô»ú¤Ç»Ï¤Þ¤ë¾ì¹ç¤Ë¤Ï¡¢¤³¤ì¤Ï 10 ¿Ê¿ô¤È²ò¼á¤µ¤ì¤Þ¤¹¡£
980 ¤Ë»ØÄꤹ¤ë¤Î¤ÈƱÍͤΥ·¥ó¥Ü¥ê¥Ã¥¯¤Ê¥â¡¼¥É¥Þ¥¹¥¯¤È²ò¼á¤µ¤ì¤Þ¤¹¡£
983 .\"O is omitted, the current value of the mask is printed.
985 ¤¬¾Êά¤µ¤ì¤ë¤È¡¢¸½ºß¤Î¥Þ¥¹¥¯¤ÎÃͤ¬½ÐÎϤµ¤ì¤Þ¤¹¡£
988 .\"O option causes the mask to be printed in symbolic form; the
989 .\"O default output is an octal number.
991 ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤È¡¢¥Þ¥¹¥¯¤Ï¥·¥ó¥Ü¥ê¥Ã¥¯¤Ê·Á¼°¤Çɽ¼¨¤µ¤ì¤Þ¤¹¡£
992 ¥Ç¥Õ¥ë¥È¤Î½ÐÎÏ¤Ï 10 ¿Ê¤Î¿ôÃͤǤ¹¡£
995 .\"O option is supplied, and
997 .\"O is omitted, the output is in a form that may be reused as input.
998 .\"O The return status is 0 if the mode was successfully changed or if
999 .\"O no \fImode\fP argument was supplied, and false otherwise.
1001 ¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¡¢¤«¤Ä
1003 ¤¬¾Êά¤µ¤ì¤¿¾ì¹ç¡¢ÆþÎϤȤ·¤ÆºÝÍøÍѤǤ¤ë·Á¼°¤Ç½ÐÎϤ¬¹Ô¤ï¤ì¤Þ¤¹¡£
1004 ¥â¡¼¥É¤¬Àµ¾ï¤ËÊѹ¹¤Ç¤¤¿¾ì¹ç¤ä¡¢
1005 \fImode\fP °ú¤¿ô¤¬Á´¤¯Í¿¤¨¤é¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢
1006 Êֵѥ¹¥Æ¡¼¥¿¥¹¤Ï 0 ¤È¤Ê¤ê¤Þ¤¹¡£
1007 ¤½¤ì°Ê³°¤Î¾ì¹ç¤Ë¤Ïµ¶¤È¤Ê¤ê¤Þ¤¹¡£
1009 \fBunalias\fP [\-\fBa\fP] [\fIname\fP ...]
1010 .\"O Remove each \fIname\fP from the list of defined aliases. If
1012 .\"O is supplied, all alias definitions are removed. The return
1013 .\"O value is true unless a supplied
1015 .\"O is not a defined alias.
1016 \fIname\fP ¤òÄêµÁ¤µ¤ì¤Æ¤¤¤ë¥¨¥¤¥ê¥¢¥¹¤Î¥ê¥¹¥È¤«¤éºï½ü¤·¤Þ¤¹¡£
1018 ¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¥¨¥¤¥ê¥¢¥¹ÄêµÁ¤ÏÁ´¤Æºï½ü¤µ¤ì¤Þ¤¹¡£
1021 ¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¥¨¥¤¥ê¥¢¥¹¤Ç¤¢¤ì¤Ð¡¢Êֵѥ¹¥Æ¡¼¥¿¥¹¤Ï¿¿¤Ë¤Ê¤ê¤Þ¤¹¡£
1023 \fBunset\fP [\-\fBfv\fP] [\fIname\fP ...]
1026 .\"O remove the corresponding variable or function.
1028 ¤½¤ì¤¾¤ì¤Ë¤Ä¤¤¤Æ¡¢Âбþ¤¹¤ëÊÑ¿ô¤ä´Ø¿ô¤òºï½ü¤·¤Þ¤¹¡£
1029 .\"O If no options are supplied, or the
1031 .\"O option is given, each
1033 .\"O refers to a shell variable.
1034 ¥ª¥×¥·¥ç¥ó¤¬Á´¤¯Í¿¤¨¤é¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤ä¡¢
1036 ¥ª¥×¥·¥ç¥ó¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤Ï¡¢³Æ
1038 ¤Ï¥·¥§¥ëÊÑ¿ô¤ò»²¾È¤·¤Þ¤¹¡£
1039 .\"O Read-only variables may not be unset.
1040 Æɤ߹þ¤ßÀìÍѤÎÊÑ¿ô¤ÎÀßÄê¤ò¾Ã¤¹¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
1046 .\"O refers to a shell function, and the function definition
1049 ¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢³Æ
1051 ¤Ï¥·¥§¥ë´Ø¿ô¤ò»²¾È¤·¡¢¤½¤Î´Ø¿ô¤ÎÄêµÁ¤¬ºï½ü¤µ¤ì¤Þ¤¹¡£
1052 .\"O Each unset variable or function is removed from the environment
1053 .\"O passed to subsequent commands.
1054 ÀßÄ꤬¾Ã¤µ¤ì¤¿ÊÑ¿ô¤ä´Ø¿ô¤ÏÁ´¤Æ¡¢
1055 ¤½¤ì°Ê¹ß¤Î¥³¥Þ¥ó¥É¤ËÅϤµ¤ì¤ë´Ä¶ÊÑ¿ô¤«¤é¤âºï½ü¤µ¤ì¤Þ¤¹¡£
1072 .\"O are unset, they lose their special properties, even if they are
1073 .\"O subsequently reset. The exit status is true unless a
1075 .\"O does not exist or is readonly.
1090 ¤Î¤¤¤º¤ì¤«¤ÎÀßÄê¤ò¾Ã¤·¤¿¾ì¹ç¡¢¤³¤ì¤é¤ÎÆüì¤ÊÆÃÀ¤â̵¤¯¤Ê¤ê¤Þ¤¹¡£
1091 ¤³¤ì¤Ï¸å¤ÇºÆÀßÄꤷ¤Æ¤â¸µ¤ËÌá¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¡£
1093 ¤¬Â¸ºß¤·¤Ê¤¤¤«¡¢Æɤ߹þ¤ßÀìÍѤξì¹ç°Ê³°¤Ë¤Ï¡¢
1094 ½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤Ï¿¿¤È¤Ê¤ê¤Þ¤¹¡£
1096 \fBwait\fP [\fIn\fP]
1097 .\"O Wait for the specified process and return its termination
1099 »ØÄꤵ¤ì¤¿¥×¥í¥»¥¹¤ò wait ¤·¡¢¤½¤Î½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤òÊÖ¤·¤Þ¤¹¡£
1101 .\"O may be a process
1102 .\"O ID or a job specification; if a job spec is given, all processes
1103 .\"O in that job's pipeline are waited for. If
1105 .\"O is not given, all currently active child processes
1106 .\"O are waited for, and the return status is zero. If
1108 .\"O specifies a non-existent process or job, the return status is
1109 .\"O 127. Otherwise, the return status is the exit status of the last
1110 .\"O process or job waited for.
1112 ¤Ï¥×¥í¥»¥¹ ID ¤Þ¤¿¤Ï¥¸¥ç¥Ö»ØÄê¤Ç¤¹¡£
1113 ¥¸¥ç¥Ö»ØÄê¤òÍ¿¤¨¤¿¾ì¹ç¡¢¤½¤Î¥¸¥ç¥Ö¤Î¥Ñ¥¤¥×¥é¥¤¥ó¤Ë´Þ¤Þ¤ì¤ë
1114 Á´¤Æ¤Î¥×¥í¥»¥¹¤ò wait ¤·¤Þ¤¹¡£
1116 ¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢¸½ºß¥¢¥¯¥Æ¥£¥Ö¤ÊÁ´¤Æ¤Î»Ò¥×¥í¥»¥¹¤ò wait ¤·¡¢
1117 Êֵѥ¹¥Æ¡¼¥¿¥¹¤Ï 0 ¤È¤Ê¤ê¤Þ¤¹¡£
1119 ¤¬Â¸ºß¤·¤Ê¤¤¥×¥í¥»¥¹¤ä¥¸¥ç¥Ö¤ò»ØÄꤷ¤Æ¤¤¤ë¾ì¹ç¡¢
1120 Êֵѥ¹¥Æ¡¼¥¿¥¹¤Ï 127 ¤Ë¤Ê¤ê¤Þ¤¹¡£
1121 ¤½¤ì°Ê³°¤Î¾ì¹ç¡¢Êֵѥ¹¥Æ¡¼¥¿¥¹¤Ï
1122 wait ¤·¤Æ¤¤¤¿ºÇ¸å¤Î¥×¥í¥»¥¹¤Þ¤¿¤Ï¥¸¥ç¥Ö¤Î½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤È¤Ê¤ê¤Þ¤¹¡£