2 \fBenable\fP [\fB\-adnps\fP] [\fB\-f\fP \fIfilename\fP] [\fIname\fP ...]
3 .\"O Enable and disable builtin shell commands.
4 .\"O Disabling a builtin allows a disk command which has the same name
5 .\"O as a shell builtin to be executed without specifying a full pathname,
6 .\"O even though the shell normally searches for builtins before disk commands.
7 ÁȤ߹þ¤ß¥³¥Þ¥ó¥É¤Î͸ú/̵¸ú¤òÀßÄꤷ¤Þ¤¹¡£
8 ¥·¥§¥ë¤ÏÄ̾ï¤Ï¥Ç¥£¥¹¥¯¥³¥Þ¥ó¥É¤ÎÁ°¤ËÁȤ߹þ¤ß¥³¥Þ¥ó¥É¤òõ¤·¤Þ¤¹¤¬¡¢
9 ÁȤ߹þ¤ß¥³¥Þ¥ó¥É¤ò̵¸ú¤Ë¤¹¤ë¤È¡¢
10 ¥·¥§¥ë¤ÎÁȤ߹þ¤ß¥³¥Þ¥ó¥É¤ÈƱ¤¸Ì¾Á°¤ò»ý¤Ä¥Ç¥£¥¹¥¯¥³¥Þ¥ó¥É¤ò¡¢
11 ´°Á´¤Ê¥Ñ¥¹Ì¾¤ò»ØÄꤷ¤Ê¤¯¤Æ¤â¼Â¹Ô¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
12 .\"O If \fB\-n\fP is used, each \fIname\fP
13 .\"O is disabled; otherwise,
14 .\"O \fInames\fP are enabled. For example, to use the
16 .\"O binary found via the
19 .\"O instead of the shell builtin version, run
20 .\"O \f(CWenable -n test\fP.
21 \fB\-n\fP ¤òÍѤ¤¤ë¤È¡¢¤½¤ì¤¾¤ì¤Î \fIname\fP ¤Ï̵¸ú¤È¤Ê¤ê¤Þ¤¹¡£
22 ¤½¤ì°Ê³°¤Î¾ì¹ç¤Ë¤Ï¡¢\fIname\fP ¤Ï͸ú¤È¤Ê¤ê¤Þ¤¹¡£
23 Î㤨¤Ð¡¢¥·¥§¥ëÁȤ߹þ¤ß¤Î¤â¤Î¤Ç¤Ê¤¯
28 ¥Ð¥¤¥Ê¥ê¤ò»È¤¦¤Ë¤Ï \f(CWenable -n test\fP ¤ò¼Â¹Ô¤·¤Þ¤¹¡£
31 .\"O option means to load the new builtin command
33 .\"O from shared object
35 .\"O on systems that support dynamic loading. The
37 .\"O option will delete a builtin previously loaded with
40 ¥ª¥×¥·¥ç¥ó¤Ï¿·¤·¤¤ÁȤ߹þ¤ß¥³¥Þ¥ó¥É
44 ¤«¤é¥í¡¼¥É¤¹¤ë¤È¤¤¤¦°ÕÌ£¤Ç¤¹¡£
45 ¤³¤ì¤ÏưŪ¥í¡¼¥Ç¥£¥ó¥°¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¥·¥¹¥Æ¥à¤Ç»È¤¨¤Þ¤¹¡£
49 ¥ª¥×¥·¥ç¥ó¤Ç¥í¡¼¥É¤·¤¿ÁȤ߹þ¤ß¥³¥Þ¥ó¥É¤òºï½ü¤·¤Þ¤¹¡£
50 .\"O If no \fIname\fP arguments are given, or if the
52 .\"O option is supplied, a list of shell builtins is printed.
53 .\"O With no other option arguments, the list consists of all enabled
55 °ú¤¿ô \fIname\fP ¤¬Í¿¤¨¤é¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤ä¡¢
57 ¥ª¥×¥·¥ç¥ó¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¡¢¥·¥§¥ë¤ÎÁȤ߹þ¤ß¥³¥Þ¥ó¥É¤Î¥ê¥¹¥È¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£
58 ¾¤Ë¥ª¥×¥·¥ç¥ó°ú¤¿ô¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢
59 ͸ú¤Ë¤Ê¤Ã¤Æ¤¤¤ë¥·¥§¥ëÁȤ߹þ¤ß¥³¥Þ¥ó¥É¤òÁ´¤Æ´Þ¤à¥ê¥¹¥È¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£
60 .\"O If \fB\-n\fP is supplied, only disabled builtins are printed.
61 \fB\-n\fP ¤òÍ¿¤¨¤ë¤È¡¢Ìµ¸ú¤Ë¤µ¤ì¤Æ¤¤¤ëÁȤ߹þ¤ß¥³¥Þ¥ó¥É¤À¤±¤¬½ÐÎϤµ¤ì¤Þ¤¹¡£
62 .\"O If \fB\-a\fP is supplied, the list printed includes all builtins, with an
63 .\"O indication of whether or not each is enabled.
64 \fB\-a\fP ¤òÍ¿¤¨¤ë¤È¡¢
65 ¤½¤ì¤¾¤ì͸ú¤«¤É¤¦¤«¤Îɽ¼¨ÉÕ¤¤ÇÁ´¤Æ¤ÎÁȤ߹þ¤ß¥³¥Þ¥ó¥É¤¬½ÐÎϤµ¤ì¤Þ¤¹¡£
66 .\"O If \fB\-s\fP is supplied, the output is restricted to the POSIX
67 .\"O \fIspecial\fP builtins.
68 \fB\-s\fP ¤òÍ¿¤¨¤ë¤È¡¢½ÐÎϤµ¤ì¤ë¤Î¤Ï POSIX ¤Î
69 \fIÆüì\fPÁȤ߹þ¤ß¥³¥Þ¥ó¥É¤À¤±¤ËÀ©¸Â¤µ¤ì¤Þ¤¹¡£
70 .\"O The return value is 0 unless a
72 .\"O is not a shell builtin or there is an error loading a new builtin
73 .\"O from a shared object.
75 ¤¬¥·¥§¥ëÁȤ߹þ¤ß¥³¥Þ¥ó¥É¤Ç̵¤¤¾ì¹ç¤È¡¢
76 ¶¦Í¥ª¥Ö¥¸¥§¥¯¥È¤«¤é¤Î¿·¤·¤¤ÁȤ߹þ¤ß¥³¥Þ¥ó¥É¤Î¥í¡¼¥É¤Ë¼ºÇÔ¤·¤¿¾ì¹ç¤ò½ü¤¡¢
77 ÊÖ¤êÃÍ¤Ï 0 ¤È¤Ê¤ê¤Þ¤¹¡£
79 \fBeval\fP [\fIarg\fP ...]
80 .\"O The \fIarg\fPs are read and concatenated together into a single
81 .\"O command. This command is then read and executed by the shell, and
82 .\"O its exit status is returned as the value of
86 .\"O or only null arguments,
89 \fIarg\fP ¤¬Æɤ߹þ¤Þ¤ì¡¢·ë¹ç¤µ¤ì¤Æ 1 ¤Ä¤Î¥³¥Þ¥ó¥É¤Ë¤µ¤ì¤Þ¤¹¡£
90 ¼¡¤Ë¡¢¤³¤Î¥³¥Þ¥ó¥É¤Ï¥·¥§¥ë¤ËÆɤ߹þ¤Þ¤ì¤Æ¼Â¹Ô¤µ¤ì¡¢¤½¤Î½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤¬
92 ¤ÎÃͤȤ·¤ÆÊÖ¤µ¤ì¤Þ¤¹¡£
94 ¤¬Ìµ¤¤¾ì¹ç¤ä¶õ¤Î°ú¤¿ô¤·¤«¤Ê¤¤¾ì¹ç¤Ë¤Ï
98 \fBexec\fP [\fB\-cl\fP] [\fB\-a\fP \fIname\fP] [\fIcommand\fP [\fIarguments\fP]]
101 .\"O is specified, it replaces the shell.
102 .\"O No new process is created. The
104 .\"O become the arguments to \fIcommand\fP.
106 ¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¤È¡¢¥·¥§¥ë¤Ï¤³¤Î¥³¥Þ¥ó¥É¤ËÃÖ¤´¹¤¨¤é¤ì¤Þ¤¹¡£
107 ¿·¤·¤¤¥×¥í¥»¥¹¤ÏÀ¸À®¤µ¤ì¤Þ¤»¤ó¡£
109 ¤Ï \fIcommand\fP ¤ËÂФ¹¤ë°ú¤¿ô¤È¤Ê¤ê¤Þ¤¹¡£
112 .\"O option is supplied,
113 .\"O the shell places a dash at the beginning of the zeroth arg passed to
116 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤ë¤È¡¢¥·¥§¥ë¤Ï
118 ¤ËÅϤ¹ 0 ÈÖÌܤΥª¥×¥·¥ç¥ó¤ÎÀèƬ¤Ë¥À¥Ã¥·¥å¤òÀßÄꤷ¤Þ¤¹¡£
125 .\"O to be executed with an empty environment. If
127 .\"O is supplied, the shell passes
129 .\"O as the zeroth argument to the executed command. If
131 .\"O cannot be executed for some reason, a non-interactive shell exits,
132 .\"O unless the shell option
134 .\"O is enabled, in which case it returns failure.
139 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤ë¤È¡¢
141 ¤Ï¶õ¤Î´Ä¶¤Ç¼Â¹Ô¤µ¤ì¤Þ¤¹¡£
143 ¤òÍ¿¤¨¤ë¤È¡¢¥·¥§¥ë¤Ï¼Â¹Ô¤¹¤ë¥³¥Þ¥ó¥É¤Ë 0 ÈÖÌܤΰú¤¿ô¤È¤·¤Æ
145 ¤òÅϤ·¤Þ¤¹¡£²¿¤é¤«¤ÎÍýͳ¤Ç
147 ¤¬¼Â¹Ô¤Ç¤¤Ê¤¤¾ì¹ç¤Ë¤ÏÈóÂÐÏÃŪ¥·¥§¥ë¤Ï½ªÎ»¤·¤Þ¤¹¡£
148 ¤¿¤À¤·¥·¥§¥ë¥ª¥×¥·¥ç¥ó
150 ¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï´Þ¤Þ¤ì¤º¡¢¤³¤Î¾ì¹ç¤Ë¤Ïµ¶¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£
151 .\"O An interactive shell returns failure if the file cannot be executed.
154 .\"O is not specified, any redirections take effect in the current shell,
155 .\"O and the return status is 0. If there is a redirection error, the
156 .\"O return status is 1.
157 ¥Õ¥¡¥¤¥ë¤¬¼Â¹Ô¤Ç¤¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢ÂÐÏÃŪ¥·¥§¥ë¤Ïµ¶¤òÊÖ¤·¤Þ¤¹¡£
159 ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢Ç¤°Õ¤Î¥ê¥À¥¤¥ì¥¯¥È¤Ï¥«¥ì¥ó¥È¥·¥§¥ë¤Ç¸ú²Ì¤òɽ¤·¡¢
160 ½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤Ï 0 ¤È¤Ê¤ê¤Þ¤¹¡£
161 ¥ê¥À¥¤¥ì¥¯¥È¤Î¥¨¥é¡¼¤¬µ¯¤¤¿¾ì¹ç¤Ë¤Ï¡¢½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤Ï 1 ¤È¤Ê¤ê¤Þ¤¹¡£
164 .\"O Cause the shell to exit
165 .\"O with a status of \fIn\fP. If
167 .\"O is omitted, the exit status
168 .\"O is that of the last command executed.
172 .\"O is executed before the shell terminates.
173 ¥¹¥Æ¡¼¥¿¥¹ \fIn\fP ¤Ç¥·¥§¥ë¤ò½ªÎ»¤µ¤»¤Þ¤¹¡£
176 ½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤ÏºÇ¸å¤Ë¼Â¹Ô¤·¤¿¥³¥Þ¥ó¥É¤Î½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤È¤Ê¤ê¤Þ¤¹¡£
177 ¥·¥§¥ë¤¬½ªÎ»¤¹¤ëÁ°¤Ë¤Ï¡¢
180 ¤ËÂФ¹¤ë¥È¥é¥Ã¥×¤¬¼Â¹Ô¤µ¤ì¤Þ¤¹¡£
183 \fBexport\fP [\fB\-fn\fP\^] [\fIname\fP[=\fIword\fP]] ...
189 .\"O are marked for automatic export to the environment of
190 .\"O subsequently executed commands. If the
192 .\"O option is given,
195 .\"O refer to functions.
198 ¤Ë¤Ï°õ¤¬ÉÕ¤±¤é¤ì¡¢°Ê¹ß¤Ë¼Â¹Ô¤¹¤ë¥³¥Þ¥ó¥É¤Î´Ä¶¤ËÂФ·¤Æ
199 ¼«Æ°Åª¤Ë¥¨¥¯¥¹¥Ý¡¼¥È¤µ¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
201 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤ë¤È¡¢
206 .\"O are given, or if the
208 .\"O option is supplied, a list
209 .\"O of all names that are exported in this shell is printed.
211 ¤òÍ¿¤¨¤Ê¤«¤Ã¤¿¾ì¹ç¤ä¡¢
213 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤¿¾ì¹ç¤Ë¤Ï¡¢¤³¤Î¥·¥§¥ëÆâ¤Ç¥¨¥¯¥¹¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ëÁ´¤Æ¤Î
214 ̾Á°¤Î¥ê¥¹¥È¤¬½ÐÎϤµ¤ì¤Þ¤¹¡£
217 .\"O option causes the export property to be removed from the
218 .\"O named variables.
220 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤ë¤È¡¢»ØÄꤷ¤¿ÊÑ¿ô¤«¤é¥¨¥¯¥¹¥Ý¡¼¥È°À¤¬¼è¤ê½ü¤«¤ì¤Þ¤¹¡£
222 .\"O returns an exit status of 0 unless an invalid option is
224 .\"O one of the \fInames\fP is not a valid shell variable name, or
226 .\"O is supplied with a
228 .\"O that is not a function.
229 ÉÔÀµ¤Ê¥ª¥×¥·¥ç¥ó¤¬¤¢¤Ã¤¿¾ì¹ç¡¢
230 \fIname\fP ¤Î¤¤¤º¤ì¤«¤¬ÉÔÀµ¤Ê¥·¥§¥ëÊÑ¿ô̾¤Ç¤¢¤Ã¤¿¾ì¹ç¡¢
231 ´Ø¿ô¤Ç¤Ê¤¤Ì¾Á°¤ËÂФ·¤Æ
233 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤¿¾ì¹ç¤ò½ü¤¡¢
235 ¤Ï½ªÎ»¥¹¥Æ¡¼¥¿¥¹ 0 ¤òÊÖ¤·¤Þ¤¹¡£
238 \fBfc\fP [\fB\-e\fP \fIename\fP] [\fB\-nlr\fP] [\fIfirst\fP] [\fIlast\fP]
240 \fBfc\fP \fB\-s\fP [\fIpat\fP=\fIrep\fP] [\fIcmd\fP]
242 .\"O Fix Command. In the first form, a range of commands from
246 .\"O is selected from the history list.
247 ¥Õ¥£¥Ã¥¯¥¹¥³¥Þ¥ó¥É (Fix Command)¡£
252 ¤Þ¤Ç¤ÎÈϰϤΥ³¥Þ¥ó¥É¤¬ÍúÎò¥ê¥¹¥È¤«¤éÁªÂò¤µ¤ì¤Þ¤¹¡£
256 .\"O may be specified as a string (to locate the last command beginning
257 .\"O with that string) or as a number (an index into the history list,
258 .\"O where a negative number is used as an offset from the current
259 .\"O command number). If
261 .\"O is not specified it is set to
262 .\"O the current command for listing (so that
263 .\"O .if n ``fc \-l \-10''
264 .\"O .if t \f(CWfc \-l \-10\fP
265 .\"O prints the last 10 commands) and to
271 ¤Ïʸ»úÎó (¤½¤Îʸ»úÎó¤Ç»Ï¤Þ¤ëºÇ¸å¤Î¥³¥Þ¥ó¥É) ¤ä
272 ¿ôÃÍ (ÍúÎò¥ê¥¹¥ÈÃæ¤Ç¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹¡£
273 Éé¤ÎÃͤϸ½ºß¤Î¥³¥Þ¥ó¥ÉÈֹ椫¤é¤Î¥ª¥Õ¥»¥Ã¥È¤È¤·¤Æ°·¤ï¤ì¤Þ¤¹)
274 ¤È¤·¤Æ»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
276 ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢¥ê¥¹¥Èɽ¼¨¤Î¾ì¹ç¤Ë¤Ï¸½ºß¤Î¥³¥Þ¥ó¥É¤¬ÀßÄꤵ¤ì
278 .if n ``fc \-l \-10''
279 .if t \f(CWfc \-l \-10\fP
280 ¤ÇºÇ¶á¤Î¥³¥Þ¥ó¥É 10 ¸Ä¤¬½ÐÎϤµ¤ì¤Þ¤¹)¡¢¤½¤ì°Ê³°¤Î¾ì¹ç¤Ë¤Ï
285 .\"O is not specified it is set to the previous
286 .\"O command for editing and \-16 for listing.
288 ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢ÊÔ½¸¤Î¾ì¹ç¤Ë¤ÏÁ°¤Î¥³¥Þ¥ó¥É¤¬ÀßÄꤵ¤ì¡¢
289 ¥ê¥¹¥Èɽ¼¨¤Î¾ì¹ç¤Ë¤Ï \-16 ¤¬ÀßÄꤵ¤ì¤Þ¤¹¡£
293 .\"O option suppresses
294 .\"O the command numbers when listing. The
296 .\"O option reverses the order of
297 .\"O the commands. If the
299 .\"O option is given,
300 .\"O the commands are listed on
301 .\"O standard output. Otherwise, the editor given by
304 .\"O on a file containing those commands. If
306 .\"O is not given, the
310 .\"O variable is used, and
317 .\"O is not set. If neither variable is set,
319 .\"O is used. When editing is complete, the edited commands are
320 .\"O echoed and executed.
322 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤ë¤È¥ê¥¹¥È¤Ë¤Ï¥³¥Þ¥ó¥ÉÈֹ椬ÉÕ¤¤Þ¤»¤ó¡£
324 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤ë¤È¥³¥Þ¥ó¥É¤Î½ç½ø¤¬µÕ¤Ë¤Ê¤ê¤Þ¤¹¡£
326 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤ë¤È¡¢¥³¥Þ¥ó¥É¤Ïɸ½à½ÐÎϤ˥ꥹ¥Èɽ¼¨¤µ¤ì¤Þ¤¹¡£
327 ¤½¤ì°Ê³°¤Î¾ì¹ç¤Ë¤Ï¡¢¤³¤ì¤é¤Î¥³¥Þ¥ó¥É¤¬½ñ¤«¤ì¤¿¥Õ¥¡¥¤¥ë¤ËÂФ·¡¢
329 ¤Ç»ØÄꤷ¤¿¥¨¥Ç¥£¥¿¤¬µ¯Æ°¤µ¤ì¤Þ¤¹¡£
331 ¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢ÊÑ¿ô
337 ¤âÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï
341 ¤É¤Á¤é¤ÎÊÑ¿ô¤âÀßÄꤵ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢
344 ÊÔ½¸¤¬½ªÎ»¤¹¤ë¤È¡¢ÊÔ½¸¤µ¤ì¤¿¥³¥Þ¥ó¥É¤¬¥¨¥³¡¼É½¼¨¤µ¤ì¡¢¼Â¹Ô¤µ¤ì¤Þ¤¹¡£
346 .\"O In the second form, \fIcommand\fP is re-executed after each instance
347 .\"O of \fIpat\fP is replaced by \fIrep\fP.
348 2 ÈÖÌܤηÁ¼°¤Ç¤Ï¡¢\fIpat\fP ¤ÎÉôʬ¤ò¤½¤ì¤¾¤ì \fIrep\fP ¤ÇÃÖ¤´¹¤¨¤¿¸å¤Ë
349 \fIcommand\fP ¤¬ºÆ¼Â¹Ô¤µ¤ì¤Þ¤¹¡£
350 .\"O A useful alias to use with this is
351 .\"O .if n ``r=fc -s'',
352 .\"O .if t \f(CWr='fc \-s'\fP,
355 .\"O .if t \f(CWr cc\fP
356 .\"O runs the last command beginning with
358 .\"O .if t \f(CWcc\fP
362 .\"O re-executes the last command.
363 ¤³¤ì¤òÍøÍѤ·¤Æ¤¤¤ëÊØÍø¤Ê¥¨¥¤¥ê¥¢¥¹¤Ë
365 .if t \f(CWr='fc \-s'\fP
373 ¤Ç»Ï¤Þ¤ëºÇ¤â¿·¤·¤¤¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤Ç¤¡¢
376 ¤ÎÆþÎϤˤè¤êľÁ°¤Î¥³¥Þ¥ó¥É¤òºÆ¼Â¹Ô¤Ç¤¤Þ¤¹¡£
378 .\"O If the first form is used, the return value is 0 unless an invalid
379 .\"O option is encountered or
383 .\"O specify history lines out of range.
384 ºÇ½é¤Î·Á¼°¤òÍѤ¤¤¿¾ì¹ç¡¢ÉÔÀµ¤Ê¥ª¥×¥·¥ç¥ó¤¬¤¢¤ë¤«¡¢
388 ¤¬ÍúÎò¹Ô¤ÎÈϰϳ°¤ò»ØÄꤷ¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢ÊÖ¤êÃÍ¤Ï 0 ¤È¤Ê¤ê¤Þ¤¹¡£
391 .\"O option is supplied, the return value is the value of the last
392 .\"O command executed or failure if an error occurs with the temporary
393 .\"O file of commands. If the second form is used, the return status
394 .\"O is that of the command re-executed, unless
396 .\"O does not specify a valid history line, in which case
398 .\"O returns failure.
400 ¥ª¥×¥·¥ç¥ó¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¡¢ÊÖ¤êÃͤϺǸå¤Ë¼Â¹Ô¤µ¤ì¤¿¥³¥Þ¥ó¥É¤ÎÊÖ¤êÃͤȤʤ뤫¡¢
401 ¤¢¤ë¤¤¤Ï¥³¥Þ¥ó¥É¤Î°ì»þ¥Õ¥¡¥¤¥ë¤Ç¥¨¥é¡¼¤¬µ¯¤¤¿¾ì¹ç¤Ë¤Ïµ¶¤È¤Ê¤ê¤Þ¤¹¡£
402 2 ÈÖÌܤηÁ¼°¤òÍѤ¤¤¿¾ì¹ç¡¢
403 ½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤ÏºÆ¼Â¹Ô¤µ¤ì¤¿¥³¥Þ¥ó¥É¤Î½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤È¤Ê¤ê¤Þ¤¹¡£
406 ¤¬Í¸ú¤ÊÍúÎò¹Ô¤ò»ØÄꤷ¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï´Þ¤Þ¤ì¤º¡¢¤³¤Î¾ì¹ç¤Ë¤Ï
410 \fBfg\fP [\fIjobspec\fP]
413 .\"O in the foreground, and make it the current job.
415 ¤Î¼Â¹Ô¤ò¥Õ¥©¥¢¥°¥é¥¦¥ó¥É¤ÇºÆ³«¤·¡¢¤³¤ì¤ò¥«¥ì¥ó¥È¥¸¥ç¥Ö¤È¤·¤Þ¤¹¡£
418 .\"O is not present, the shell's notion of the \fIcurrent job\fP is used.
420 ¤¬Ìµ¤¤¾ì¹ç¡¢¥·¥§¥ë¤¬µÏ¿¤·¤Æ¤¤¤ë\fI¥«¥ì¥ó¥È¥¸¥ç¥Ö\fP¤¬»È¤ï¤ì¤Þ¤¹¡£
421 .\"O The return value is that of the command placed into the foreground,
422 .\"O or failure if run when job control is disabled or, when run with
423 .\"O job control enabled, if
425 .\"O does not specify a valid job or
427 .\"O specifies a job that was started without job control.
428 ÊÖ¤êÃͤϥե©¥¢¥°¥é¥¦¥ó¥É¤ÇºÆ³«¤µ¤ì¤¿¥³¥Þ¥ó¥É¤ÎÊÖ¤êÃͤǤ¹¤¬¡¢
429 ¥¸¥ç¥ÖÀ©¸æ¤¬Ìµ¸ú¤Ç¤¢¤ë¤È¤¤Ë¼Â¹Ô¤·¤¿¾ì¹ç¤ä¡¢
430 ¥¸¥ç¥ÖÀ©¸æ¤¬Í¸ú¤Ç¤¢¤Ã¤Æ¤â
432 ¤¬Í¸ú¤Ê¥¸¥ç¥Ö¤ò»ØÄꤷ¤Æ¤¤¤Ê¤¤¾ì¹ç¤ä
434 ¤¬¥¸¥ç¥ÖÀ©¸æ̵¤·¤Ç¼Â¹Ô¤·¤¿¥¸¥ç¥Ö¤ò»ØÄꤷ¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ïµ¶¤È¤Ê¤ê¤Þ¤¹¡£
436 \fBgetopts\fP \fIoptstring\fP \fIname\fP [\fIargs\fP]
438 .\"O is used by shell procedures to parse positional parameters.
440 ¤Ï¥·¥§¥ë¤Î¼ê³¤¤¬°ÌÃÖÉÕ¤¥Ñ¥é¥á¡¼¥¿¤òŸ³«¤¹¤ë¤¿¤á¤Ë»È¤¤¤Þ¤¹¡£
442 .\"O contains the option characters to be recognized; if a character
443 .\"O is followed by a colon, the option is expected to have an
444 .\"O argument, which should be separated from it by white space.
446 ¤Ï¼±Ê̤ÎÂоݤǤ¢¤ë¥ª¥×¥·¥ç¥óʸ»úÎó¤Ç¤¹¡£
447 ¤¢¤ëʸ»ú¤Î¸å¤Ë¥³¥í¥ó¤¬¤¢¤ë¾ì¹ç¡¢
448 ¤½¤Î¥ª¥×¥·¥ç¥ó¤Ï°ú¤¿ô¤ò¼è¤ë¤³¤È¤¬´üÂÔ¤µ¤ì¤Þ¤¹¡£
449 °ú¤¿ô¤Ï¶õÇò¤Ç¥ª¥×¥·¥ç¥óʸ»ú¤È¶èÀÚ¤é¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
450 .\"O The colon and question mark characters may not be used as
451 .\"O option characters.
452 ¥³¥í¥ó¤Èµ¿ÌäÉä¤Ï¥ª¥×¥·¥ç¥óʸ»ú¤È¤·¤Æ»È¤¨¤Þ¤»¤ó¡£
453 .\"O Each time it is invoked,
455 .\"O places the next option in the shell variable
459 .\"O if it does not exist,
460 .\"O and the index of the next argument to be processed into the
466 ¤Ï¼¡¤Î¥ª¥×¥·¥ç¥ó¤ò¥·¥§¥ëÊÑ¿ô
470 ¤¬Â¸ºß¤·¤Ê¤±¤ì¤Ð½é´ü²½¤ò¹Ô¤¤¤Þ¤¹)¡¢
471 ¼¡¤Ë½èÍý¤µ¤ì¤ë°ú¤¿ô¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹¤òÊÑ¿ô
477 .\"O is initialized to 1 each time the shell or a shell script
478 .\"O is invoked. When an option requires an argument,
480 .\"O places that argument into the variable
485 ¤Ï¥·¥§¥ë¤Þ¤¿¤Ï¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤¬¸Æ¤Ó½Ð¤µ¤ì¤ëÅÙ¤Ë 1 ¤Ë½é´ü²½¤µ¤ì¤Þ¤¹¡£
486 ¥ª¥×¥·¥ç¥ó¤¬°ú¤¿ô¤òɬÍפȤ¹¤ë¾ì¹ç¤Ë¤Ï¡¢
492 .\"O The shell does not reset
495 .\"O automatically; it must be manually reset between multiple
498 .\"O within the same shell invocation if a new set of parameters
503 ¤ò¼«Æ°Åª¤ËºÆÀßÄꤹ¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¡£
504 1 ¤Ä¤Î¥·¥§¥ë¤¬¸Æ¤Ó½Ð¤µ¤ì¤Æ¤¤¤ë´Ö¤ËÊ̤Υѥé¥á¡¼¥¿¤ÎÁȹ礻¤ò»È¤¦¾ì¹ç¤Ë¤Ï¡¢
506 ¤Î¸Æ¤Ó½Ð¤·¤Î´Ö¤Ë¼êÆ°¤ÇºÆÀßÄê¤ò¹Ô¤ï¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
508 .\"O When the end of options is encountered, \fBgetopts\fP exits with a
509 .\"O return value greater than zero.
510 .\"O \fBOPTIND\fP is set to the index of the first non-option argument,
511 .\"O and \fBname\fP is set to ?.
512 ¥ª¥×¥·¥ç¥ó¤Î½ª¤ï¤ê¤ËÅþ㤹¤ë¤È¡¢
513 \fBgetopts\fP ¤Ï 0 ¤è¤êÂ礤¤ÊÖ¤êÃͤǽªÎ»¤·¤Þ¤¹¡£
514 \fBOPTIND\fP ¤Ë¤Ï¥ª¥×¥·¥ç¥ó¤Ç¤Ê¤¤ºÇ½é¤Î°ú¤¿ô¤¬ÀßÄꤵ¤ì¡¢
515 \fBname\fP ¤Ë¤Ï ? ¤¬ÀßÄꤵ¤ì¤Þ¤¹¡£
518 .\"O normally parses the positional parameters, but if more arguments are
522 .\"O parses those instead.
524 ¤ÏÄ̾°ÌÃÖÉÕ¤¥Ñ¥é¥á¡¼¥¿¤òŸ³«¤·¤Þ¤¹¤¬¡¢Â¾¤Î°ú¤¿ô¤¬
526 ¤Ë»ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢
528 ¤Ï°ÌÃ֥ѥé¥á¡¼¥¿¤Ç¤Ê¤¯¤³¤ì¤é¤òŸ³«¤·¤Þ¤¹¡£
531 .\"O can report errors in two ways. If the first character of
535 .\"O error reporting is used. In normal operation diagnostic messages
536 .\"O are printed when invalid options or missing option arguments are
539 ¤Ï 2 Ä̤ê¤ÎÊýË¡¤Ç¥¨¥é¡¼¤òÊó¹ð¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
541 ¤ÎºÇ½é¤Îʸ»ú¤¬¥³¥í¥ó¤Ê¤é¤Ð¡¢
543 ¥¨¥é¡¼Êó¹ð¤¬¹Ô¤ï¤ì¤Þ¤¹¡£
544 Ä̾ï¤ÎÁàºî¤Ç¤Ï¡¢ÉÔÀµ¤Ê¥ª¥×¥·¥ç¥ó¤¬¤¢¤ë¾ì¹ç¤ä
545 ¥ª¥×¥·¥ç¥ó¤Î°ú¤¿ô¤¬Â¤ê¤Ê¤¤¾ì¹ç¤Ë¿ÇÃÇ¥á¥Ã¥»¡¼¥¸¤¬½ÐÎϤµ¤ì¤Þ¤¹¡£
549 .\"O is set to 0, no error messages will be displayed, even if the first
556 ¤Ë 0 ¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ÏÁ´¤¯½ÐÎϤµ¤ì¤Þ¤»¤ó¡£
559 ¤ÎºÇ½é¤Îʸ»ú¤¬¥³¥í¥ó¤Ç¤Ê¤¯¤Æ¤âƱ¤¸¤Ç¤¹¡£
561 .\"O If an invalid option is seen,
565 .\"O and, if not silent,
566 .\"O prints an error message and unsets
569 ÉÔÀµ¤Ê¥ª¥×¥·¥ç¥ó¤¬¤¢¤Ã¤¿¾ì¹ç¡¢
574 ¤µ¤é¤Ë¡¢ÀŤ«¤Ê¥â¡¼¥É¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤¬½ÐÎϤµ¤ì¡¢
577 ¤ÎÀßÄ꤬¼è¤ê¾Ã¤µ¤ì¤Þ¤¹¡£
581 .\"O the option character found is placed in
584 .\"O and no diagnostic message is printed.
586 ¤¬ÀŤ«¤Ê¥â¡¼¥É¤Ç¤¢¤ì¤Ð¡¢¸«¤Ä¤«¤Ã¤¿¥ª¥×¥·¥ç¥óʸ»ú¤Ï
589 ¤ËÀßÄꤵ¤ì¡¢¿ÇÃÇ¥á¥Ã¥»¡¼¥¸¤Ï½ÐÎϤµ¤ì¤Þ¤»¤ó¡£
591 .\"O If a required argument is not found, and
594 .\"O a question mark (\^\fB?\fP\^) is placed in
597 .\"O is unset, and a diagnostic message is printed.
598 ɬÍפʰú¤¿ô¤¬¸«¤Ä¤«¤é¤º¡¢¤«¤Ä
600 ¤¬ÀŤ«¤Ê¥â¡¼¥É¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢µ¿ÌäÉä (\^\fB?\fP\^) ¤¬
604 ¤ÎÀßÄ꤬¼è¤ê¾Ã¤µ¤ì¡¢¿ÇÃÇ¥á¥Ã¥»¡¼¥¸¤¬½ÐÎϤµ¤ì¤Þ¤¹¡£
607 .\"O is silent, then a colon (\^\fB:\fP\^) is placed in
612 .\"O is set to the option character found.
614 ¤¬ÀŤ«¤Ê¥â¡¼¥É¤Ê¤é¤Ð¡¢¥³¥í¥ó (\^\fB:\fP\^) ¤¬
619 ¤Ë¤Ï¸«¤Ä¤«¤Ã¤¿¥ª¥×¥·¥ç¥óʸ»ú¤¬ÀßÄꤵ¤ì¤Þ¤¹¡£
622 .\"O returns true if an option, specified or unspecified, is found.
623 .\"O It returns false if the end of options is encountered or an
625 (»ØÄê¤ÎÍ̵¤Ë´Ø·¸¤Ê¤¯) ¥ª¥×¥·¥ç¥ó¤¬¸«¤Ä¤«¤Ã¤¿¾ì¹ç¡¢
628 ¥ª¥×¥·¥ç¥ó¤ÎºÇ¸å¤ËÅþ㤷¤¿¾ì¹ç¤ä¡¢¥¨¥é¡¼¤¬µ¯¤¤¿¾ì¹ç¤Ë¤Ï¡¢
632 \fBhash\fP [\fB\-r\fP] [\fB\-p\fP \fIfilename\fP] [\fIname\fP]
635 .\"O the full file name of the command is determined by searching
636 .\"O the directories in
642 Æâ¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Î¸¡º÷¤ò¹Ô¤Ã¤Æ¥³¥Þ¥ó¥É¤Î´°Á´¤Ê¥Õ¥¡¥¤¥ë̾¤òÄ´¤Ù¡¢
643 ¤½¤Î·ë²Ì¤òµ²±¤·¤Þ¤¹¡£
646 .\"O option is supplied, no path search is performed, and
648 .\"O is used as the full file name of the command.
650 ¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤ë¤È¡¢¥Ñ¥¹¸¡º÷¤Ï¼Â¹Ô¤µ¤ì¤º¡¢
652 ¤¬¤½¤Î¥³¥Þ¥ó¥É¤Î´°Á´¤Ê¥Õ¥¡¥¤¥ë̾¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£
655 .\"O option causes the shell to forget all
656 .\"O remembered locations. If no arguments are given, information
657 .\"O about remembered commands is printed.
658 .\"O The return status is true unless a
660 .\"O is not found or an invalid option is supplied.
662 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤ë¤È¡¢¥·¥§¥ë¤Ïµ²±¤·¤Æ¤¤¤ë°ÌÃÖ¤òÁ´¤Æ˺¤ì¤Þ¤¹¡£
663 °ú¤¿ô¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢
664 µ²±¤·¤Æ¤¤¤ë¥³¥Þ¥ó¥É¤Ë´Ø¤¹¤ë¾ðÊ󤬽ÐÎϤµ¤ì¤Þ¤¹¡£
666 ¤¬¸«¤Ä¤«¤é¤Ê¤¤¾ì¹ç¤ÈÉÔÀµ¤Ê¥ª¥×¥·¥ç¥ó¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤ò½ü¤¡¢
667 Êֵѥ¹¥Æ¡¼¥¿¥¹¤Ï¿¿¤È¤Ê¤ê¤Þ¤¹¡£
669 \fBhelp\fP [\fB\-s\fP] [\fIpattern\fP]
670 .\"O Display helpful information about builtin commands. If
674 .\"O gives detailed help on all commands matching
676 .\"O otherwise help for all the builtins and shell control structures
678 ÁȤ߹þ¤ß¥³¥Þ¥ó¥É¤Î¥Ø¥ë¥×¾ðÊó¤òɽ¼¨¤·¤Þ¤¹¡£
680 ¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢
684 ¤Ë¥Þ¥Ã¥Á¤¹¤ëÁ´¤Æ¤Î¥³¥Þ¥ó¥É¤Ë´Ø¤¹¤ë¾Ü¤·¤¤¥Ø¥ë¥×¤ò½ÐÎϤ·¤Þ¤¹¡£
686 Á´¤Æ¤ÎÁȤ߹þ¤ß¥³¥Þ¥ó¥É¤ÈÀ©¸æ¹½Â¤¤Ë¤Ä¤¤¤Æ¤ÎÀâÌÀ¤¬½ÐÎϤµ¤ì¤Þ¤¹¡£
687 .\"O The \fB\-s\fP option restricts the information displayed to a short
689 \fB\-s\fP ¥ª¥×¥·¥ç¥ó¤Ï¡¢É½¼¨¤µ¤ì¤ë¥Ø¥ë¥×¾ðÊó¤òû¤¤½ñ¼°¤Î»ÈÍÑË¡¤Ë¸ÂÄꤷ¤Þ¤¹¡£
690 .\"O The return status is 0 unless no command matches
693 ¤Ë¥Þ¥Ã¥Á¤¹¤ë¥³¥Þ¥ó¥É¤¬Á´¤¯¤Ê¤¤¾ì¹ç¤ò½ü¤¡¢½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤Ï 0 ¤Ç¤¹¡£
698 \fBhistory\fP \fB\-c\fP
700 \fBhistory \-d\fP \fIoffset\fP
702 \fBhistory\fP \fB\-anrw\fP [\fIfilename\fP]
704 \fBhistory\fP \fB\-p\fP \fIarg\fP [\fIarg ...\fP]
706 \fBhistory\fP \fB\-s\fP \fIarg\fP [\fIarg ...\fP]
708 .\"O With no options, display the command
709 .\"O history list with line numbers. Lines listed
712 .\"O have been modified. An argument of
714 .\"O lists only the last
716 .\"O lines. If \fIfilename\fP is supplied, it is used as the
717 .\"O name of the history file; if not, the value of
720 .\"O is used. Options, if supplied, have the following meanings:
721 ¥ª¥×¥·¥ç¥ó¤¬¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢¹ÔÈÖ¹æÉÕ¤¤Ç¥³¥Þ¥ó¥ÉÍúÎò¤òɽ¼¨¤·¤Þ¤¹¡£
723 ÉÕ¤¤Ç¥ê¥¹¥Èɽ¼¨¤µ¤ì¤Æ¤¤¤ë¹Ô¤ÏÊѹ¹¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
728 ¹Ô¤À¤±¤¬¥ê¥¹¥Èɽ¼¨¤µ¤ì¤Þ¤¹¡£
729 \fIfilename\fP ¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¾ì¹ç¡¢
730 ¤³¤ì¤ÏÍúÎò¥Õ¥¡¥¤¥ë¤Î̾Á°¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£
731 ¤³¤ì¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢
734 ¤ÎÃͤ¬»È¤ï¤ì¤Þ¤¹¡£(»ØÄꤵ¤ì¤Æ¤¤¤ì¤Ð) ¥ª¥×¥·¥ç¥ó¤Ï°Ê²¼¤Î°ÕÌ£¤ò»ý¤Á¤Þ¤¹:
739 .\"O Clear the history list by deleting all the entries.
740 ÍúÎò¥ê¥¹¥È¤ÎÁ´¤Æ¤Î¥¨¥ó¥È¥ê¤òºï½ü¤·¡¢¥¯¥ê¥¢¤·¤Þ¤¹¡£
742 \fB\-d\fP \fIoffset\fP
743 .\"O Delete the history entry at position \fIoffset\fP.
744 \fIoffset\fP ÈÖÌܤˤ¢¤ëÍúÎò¥¨¥ó¥È¥ê¤òºï½ü¤·¤Þ¤¹¡£
747 .\"O Append the ``new'' history lines (history lines entered since the
748 .\"O beginning of the current \fBbash\fP session) to the history file.
750 (\fBbash\fP ¤Î¸½ºß¤Î¥»¥Ã¥·¥ç¥ó¤Î³«»Ï°ÊÍèÆþÎϤµ¤ì¤¿ÍúÎò¹Ô) ¤ò
751 ÍúÎò¥Õ¥¡¥¤¥ë¤ËÄɲä·¤Þ¤¹¡£
754 .\"O Read the history lines not already read from the history
755 .\"O file into the current history list. These are lines
756 .\"O appended to the history file since the beginning of the
757 .\"O current \fBbash\fP session.
758 ¤Þ¤ÀÍúÎò¥Õ¥¡¥¤¥ë¤«¤éÆɤ߹þ¤ó¤Ç¤¤¤Ê¤¤ÍúÎò¹Ô¤ò
759 ¸½ºß¤ÎÍúÎò¥ê¥¹¥È¤ËÆɤ߹þ¤ß¤Þ¤¹¡£
760 ¤³¤ì¤é¤Ï¡¢\fBbash\fP ¤Î¸½ºß¤Î¥»¥Ã¥·¥ç¥ó¤Î³«»Ï°ÊÍè¡¢
761 ÍúÎò¥Õ¥¡¥¤¥ë¤ËÄɲ䵤줿¹Ô¤Ç¤¹¡£
764 .\"O Read the contents of the history file
765 .\"O and use them as the current history.
766 ÍúÎò¥Õ¥¡¥¤¥ë¤ÎÆâÍƤòÆɤ߹þ¤ß¡¢¤³¤ì¤é¤ò¸½ºß¤ÎÍúÎò¤È¤·¤ÆÍѤ¤¤Þ¤¹¡£
769 .\"O Write the current history to the history file, overwriting the
770 .\"O history file's contents.
771 ¸½ºß¤ÎÍúÎò¤òÍúÎò¥Õ¥¡¥¤¥ë¤Ë½ñ¤¹þ¤ß¤Þ¤¹¡£ÍúÎò¥Õ¥¡¥¤¥ë¤ÎÆâÍƤϾå½ñ¤¤µ¤ì¤Þ¤¹¡£
774 .\"O Perform history substitution on the following \fIargs\fP and display
775 .\"O the result on the standard output.
776 .\"O Does not store the results in the history list.
777 .\"O Each \fIarg\fP must be quoted to disable normal history expansion.
778 ¸å¤Ë³¤¯ \fIargs\fP ¤ËÂФ·¤ÆÍúÎòÃÖ´¹¤ò¹Ô¤¤¡¢¤½¤Î·ë²Ì¤òɸ½à½ÐÎϤËɽ¼¨¤·¤Þ¤¹¡£
779 ¤³¤Î·ë²Ì¤ÏÍúÎò¥ê¥¹¥È¤Ë¤Ï³ÊǼ¤µ¤ì¤Þ¤»¤ó¡£
780 Ä̾ï¤ÎÍúÎòŸ³«¤¬¹Ô¤ï¤ì¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¤¿¤á¡¢
781 \fIarg\fP ¤Ï¤½¤ì¤¾¤ì¥¯¥©¡¼¥È¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
786 .\"O in the history list as a single entry. The last command in the
787 .\"O history list is removed before the
791 ¤ò 1 ¤Ä¤Î¥¨¥ó¥È¥ê¤È¤·¤ÆÍúÎò¥ê¥¹¥È¤Ë³ÊǼ¤·¤Þ¤¹¡£
792 ÍúÎò¥ê¥¹¥È¤ÎºÇ¸å¤Î¥³¥Þ¥ó¥É¤Ï¡¢
794 ¤¬Äɲ䵤ì¤ëÁ°¤Ëºï½ü¤µ¤ì¤Þ¤¹¡£
797 .\"O The return value is 0 unless an invalid option is encountered, an
798 .\"O error occurs while reading or writing the history file, an invalid
799 .\"O \fIoffset\fP is supplied as an argument to \fB\-d\fP, or the
800 .\"O history expansion supplied as an argument to \fB\-p\fP fails.
801 ÉÔÀµ¤Ê¥ª¥×¥·¥ç¥ó¤¬¤¢¤ë¾ì¹ç¡¢
802 ÍúÎò¥Õ¥¡¥¤¥ë¤ÎÆɤ߽ñ¤¤Î´Ö¤Ë¥¨¥é¡¼¤¬µ¯¤¤¿¾ì¹ç¡¢
803 \fB\-d\fP ¥ª¥×¥·¥ç¥ó¤Î°ú¤¿ô¤È¤·¤ÆÉÔÀµ¤Ê \fIoffset\fP ¤ÎÃͤ¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¡¢
804 \fB\-p\fP ¥ª¥×¥·¥ç¥ó¤Î°ú¤¿ô¤È¤·¤ÆÍ¿¤¨¤é¤ì¤¿ÍúÎòŸ³«¤¬¼ºÇÔ¤·¤¿¾ì¹ç
805 ¤ò½ü¤¡¢ÊÖ¤êÃÍ¤Ï 0 ¤Ë¤Ê¤ê¤Þ¤¹¡£
809 \fBjobs\fP [\fB\-lnprs\fP] [ \fIjobspec\fP ... ]
811 \fBjobs\fP \fB\-x\fP \fIcommand\fP [ \fIargs\fP ... ]
813 .\"O The first form lists the active jobs. The options have the following
815 ºÇ½é¤Î·Á¼°¤ò¼Â¹Ô¤¹¤ë¤È¡¢¥¢¥¯¥Æ¥£¥Ö¤Ê¥¸¥ç¥Ö¤¬¥ê¥¹¥Èɽ¼¨¤µ¤ì¤Þ¤¹¡£
816 ¥ª¥×¥·¥ç¥ó¤Ï°Ê²¼¤Î°ÕÌ£¤ò»ý¤Á¤Þ¤¹:
821 .\"O List process IDs
822 .\"O in addition to the normal information.
823 Ä̾ï¤Î¾ðÊó¤Ë²Ã¤¨¤Æ¡¢¥×¥í¥»¥¹ ID ¤ò¥ê¥¹¥Èɽ¼¨¤·¤Þ¤¹¡£
826 .\"O List only the process ID of the job's process group
828 ¤½¤Î¥¸¥ç¥Ö¤¬Â°¤¹¤ë¥×¥í¥»¥¹¥°¥ë¡¼¥×¤Î¥ê¡¼¥À¡¼¤Î¥×¥í¥»¥¹ ID ¤À¤±¤òɽ¼¨¤·¤Þ¤¹¡£
831 .\"O Display information only about jobs that have changed status since
832 .\"O the user was last notified of their status.
833 ¥æ¡¼¥¶¤¬¥¹¥Æ¡¼¥¿¥¹¤òºÇ¸å¤ËÄÌÃΤµ¤ì¤Æ°ÊÍè¡¢
834 ¥¹¥Æ¡¼¥¿¥¹¤ÎÊѹ¹¤¬¤¢¤Ã¤¿¥¸¥ç¥Ö¤Ë´Ø¤¹¤ë¾ðÊó¤À¤±¤òɽ¼¨¤·¤Þ¤¹¡£
837 .\"O Restrict output to running jobs.
838 ¼Â¹ÔÃæ¤Î¥¸¥ç¥Ö¤À¤±½ÐÎϤ¹¤ë¤è¤¦¤ËÀ©¸Â¤·¤Þ¤¹¡£
841 .\"O Restrict output to stopped jobs.
842 Ää»ßÃæ¤Î¥¸¥ç¥Ö¤À¤±½ÐÎϤ¹¤ë¤è¤¦¤ËÀ©¸Â¤·¤Þ¤¹¡£
847 .\"O is given, output is restricted to information about that job.
848 .\"O The return status is 0 unless an invalid option is encountered
853 ¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¾ì¹ç¡¢
854 ¤½¤Î¥¸¥ç¥Ö¤Ë´Ø¤¹¤ë¾ðÊó¤À¤±¤¬½ÐÎϤµ¤ì¤ë¤è¤¦¤ËÀ©¸Â¤µ¤ì¤Þ¤¹¡£
855 ÉÔÀµ¤Ê¥ª¥×¥·¥ç¥ó¤¬¤¢¤ë¾ì¹ç¤ä¡¢ÉÔÀµ¤Ê
857 ¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤ò½ü¤¡¢Êֵѥ¹¥Æ¡¼¥¿¥¹¤Ï 0 ¤Ç¤¹¡£
861 .\"O option is supplied,
869 .\"O with the corresponding process group ID, and executes
873 .\"O returning its exit status.
875 ¥ª¥×¥·¥ç¥ó¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¡¢
883 ¤òÁ´¤ÆÂбþ¤¹¤ë¥×¥í¥»¥¹¥°¥ë¡¼¥× ID ¤ËÃÖ¤´¹¤¨¡¢
887 ¤ò¼Â¹Ô¤·¡¢¤½¤Î½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤òÊÖ¤·¤Þ¤¹¡£
891 \fBkill\fP [\fB\-s\fP \fIsigspec\fP | \fB\-n\fP \fIsignum\fP | \fB\-\fP\fIsigspec\fP] [\fIpid\fP | \fIjobspec\fP] ...
893 \fBkill\fP \fB\-l\fP [\fIsigspec\fP | \fIexit_status\fP]
895 .\"O Send the signal named by
899 .\"O to the processes named by
906 ¤Ç»ØÄꤵ¤ì¤¿¥·¥°¥Ê¥ë¤ò¡¢
910 ¤Ç»ØÄꤵ¤ì¤¿¥×¥í¥»¥¹¤ËÁ÷¤ê¤Þ¤¹¡£
912 .\"O is either a signal name such as
915 .\"O or a signal number;
920 ¤Î¤è¤¦¤Ê¥·¥°¥Ê¥ë̾¡¢¤Þ¤¿¤Ï¥·¥°¥Ê¥ë¤ÎÈÖ¹æ¤Ç¤¹¡£
922 .\"O is a signal number. If
924 .\"O is a signal name, the name may be
925 .\"O given with or without the
930 ¤Ï¥·¥°¥Ê¥ë¤ÎÈÖ¹æ¤Ç¤¹¡£
932 ¤¬¥·¥°¥Ê¥ë̾¤Ê¤é¤Ð¡¢¤½¤Î̾Á°¤Ë¤Ï
935 ¥×¥ì¥Õ¥£¥Ã¥¯¥¹¤Ï¤¢¤Ã¤Æ¤â̵¤¯¤Æ¤â¹½¤¤¤Þ¤»¤ó¡£
938 .\"O is not present, then
946 ¤¬»ØÄꤵ¤ì¤¿¤â¤Î¤È¤·¤Þ¤¹¡£
949 .\"O lists the signal names.
952 ¤òÍ¿¤¨¤ë¤È¥·¥°¥Ê¥ë̾¤¬¥ê¥¹¥Èɽ¼¨¤µ¤ì¤Þ¤¹¡£
953 .\"O If any arguments are supplied when
955 .\"O is given, the names of the signals corresponding to the arguments are
956 .\"O listed, and the return status is 0.
958 ¤ÈƱ»þ¤Ë°ú¤¿ô¤òÍ¿¤¨¤ë¤È¡¢°ú¤¿ô¤ËÂбþ¤¹¤ë¥·¥°¥Ê¥ë¤Î̾Á°¤¬¥ê¥¹¥Èɽ¼¨¤µ¤ì¡¢
959 ½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤Ï 0 ¤È¤Ê¤ê¤Þ¤¹¡£
960 .\"O The \fIexit_status\fP argument to
962 .\"O is a number specifying either a signal number or the exit status of
963 .\"O a process terminated by a signal.
965 ¤ËÂФ¹¤ë°ú¤¿ô \fIexit_status\fP ¤Ï¡¢
966 ¥·¥°¥Ê¥ëÈֹ桢¤Þ¤¿¤Ï¥·¥°¥Ê¥ë¤Ë¤è¤Ã¤Æ½ªÎ»¤µ¤»¤é¤ì¤¿
967 ¥×¥í¥»¥¹¤Î½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤ò»ØÄꤹ¤ë¿ô¤Ç¤¹¡£
969 .\"O returns true if at least one signal was successfully sent, or false
970 .\"O if an error occurs or an invalid option is encountered.
971 ¾¯¤Ê¤¯¤È¤â 1 ¤Ä¤Î¥·¥°¥Ê¥ë¤òÀµ¾ï¤ËÁ÷¤ë¤³¤È¤¬¤Ç¤¤¿¾ì¹ç¡¢
974 ¥¨¥é¡¼¤¬µ¯¤¤¿¾ì¹ç¤äÉÔÀµ¤Ê¥ª¥×¥·¥ç¥ó¤¬¤¢¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢
978 \fBlet\fP \fIarg\fP [\fIarg\fP ...]
981 .\"O is an arithmetic expression to be evaluated (see
983 .\"O .BR "ARITHMETIC EVALUATION" ).
986 ¤Ïɾ²Á¤µ¤ì¤ë»»½Ñ¼°¤Ç¤¹
989 ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤)¡£
994 .\"O returns 1; 0 is returned otherwise.
997 ¤òɾ²Á¤·¤¿·ë²Ì¤¬ 0 ¤Ç¤¢¤ì¤Ð¡¢
1000 ¤½¤ì°Ê³°¤Î¾ì¹ç¤Ë¤Ï¡¢0 ¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£
1002 \fBlocal\fP [\fIoption\fP] [\fIname\fP[=\fIvalue\fP] ...]
1003 .\"O For each argument, a local variable named
1005 .\"O is created, and assigned
1007 ¤½¤ì¤¾¤ì¤Î°ú¤¿ô¤ËÂФ·¤Æ¡¢
1009 ¤¬¼¨¤¹¥í¡¼¥«¥ëÊÑ¿ô¤¬À¸À®¤µ¤ì¡¢
1012 .\"O The \fIoption\fP can be any of the options accepted by \fBdeclare\fP.
1013 \fIoption\fP ¤Ï¡¢\fBdeclare\fP ¥³¥Þ¥ó¥É¤¬¼õ¤±¼è¤ë¥ª¥×¥·¥ç¥ó¤Ç¤¢¤ì¤Ð¡¢
1014 ¤É¤ì¤Ç¤â¹½¤¤¤Þ¤»¤ó¡£
1017 .\"O is used within a function, it causes the variable
1019 .\"O to have a visible scope restricted to that function and its children.
1022 ¤ò»È¤Ã¤¿¾ì¹ç¡¢¤³¤ÎÊÑ¿ô
1024 ¤Î²Ä»ë¥¹¥³¡¼¥×¤Ï¡¢¤³¤Î´Ø¿ô¤È¤³¤Î´Ø¿ô¤Î»Ò¤ËÀ©¸Â¤µ¤ì¤Þ¤¹¡£
1025 .\"O With no operands,
1027 .\"O writes a list of local variables to the standard output. It is
1028 .\"O an error to use
1030 .\"O when not within a function. The return status is 0 unless
1032 .\"O is used outside a function, an invalid
1034 .\"O is supplied, or
1035 .\"O \fIname\fP is a readonly variable.
1036 ¥ª¥Ú¥é¥ó¥É¤¬Ìµ¤¤¾ì¹ç¡¢
1038 ¤Ï¥í¡¼¥«¥ëÊÑ¿ô¤Î°ìÍ÷¤òɸ½à½ÐÎϤ˽ÐÎϤ·¤Þ¤¹¡£
1041 ¤ò»È¤¦¤È¥¨¥é¡¼¤Ë¤Ê¤ê¤Þ¤¹¡£
1043 ¤¬´Ø¿ô¤Î³°Éô¤Ç»È¤ï¤ì¤¿¤ê¡¢
1047 \fIname\fP¤¬Æɤ߼è¤êÀìÍѤǤ¢¤Ã¤¿¤ê¤·¤Ê¤±¤ì¤Ð¡¢
1049 ¤ÎÊֵѥ¹¥Æ¡¼¥¿¥¹¤Ï 0 ¤È¤Ê¤ê¤Þ¤¹¡£
1052 .\"O Exit a login shell.
1053 ¥í¥°¥¤¥ó¥·¥§¥ë¤ò½ªÎ»¤·¤Þ¤¹¡£