OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / GNU_bash / work / P11
1 .TP
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
15 .\"O .B test
16 .\"O binary found via the
17 .\"O .SM
18 .\"O .B PATH
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 Î㤨¤Ð¡¢¥·¥§¥ëÁȤ߹þ¤ß¤Î¤â¤Î¤Ç¤Ê¤¯
24 .SM
25 .B PATH
26 ¾å¤Ë¤¢¤ë
27 .B test
28 ¥Ð¥¤¥Ê¥ê¤ò»È¤¦¤Ë¤Ï \f(CWenable -n test\fP ¤ò¼Â¹Ô¤·¤Þ¤¹¡£
29 .\"O The
30 .\"O .B \-f
31 .\"O option means to load the new builtin command
32 .\"O .I name
33 .\"O from shared object
34 .\"O .IR filename ,
35 .\"O on systems that support dynamic loading.  The
36 .\"O .B \-d
37 .\"O option will delete a builtin previously loaded with
38 .\"O .BR \-f .
39 .B \-f
40 ¥ª¥×¥·¥ç¥ó¤Ï¿·¤·¤¤ÁȤ߹þ¤ß¥³¥Þ¥ó¥É
41 .I name
42 ¤ò¶¦Í­¥ª¥Ö¥¸¥§¥¯¥È
43 .I filename
44 ¤«¤é¥í¡¼¥É¤¹¤ë¤È¤¤¤¦°ÕÌ£¤Ç¤¹¡£
45 ¤³¤ì¤ÏưŪ¥í¡¼¥Ç¥£¥ó¥°¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¥·¥¹¥Æ¥à¤Ç»È¤¨¤Þ¤¹¡£
46 .B \-d
47 ¥ª¥×¥·¥ç¥ó¤Ï¡¢°ÊÁ°¤Ë
48 .B \-f
49 ¥ª¥×¥·¥ç¥ó¤Ç¥í¡¼¥É¤·¤¿ÁȤ߹þ¤ß¥³¥Þ¥ó¥É¤òºï½ü¤·¤Þ¤¹¡£
50 .\"O If no \fIname\fP arguments are given, or if the
51 .\"O .B \-p
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
54 .\"O shell builtins.
55 °ú¤­¿ô \fIname\fP ¤¬Í¿¤¨¤é¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤ä¡¢
56 .B \-p
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
71 .\"O .I name
72 .\"O is not a shell builtin or there is an error loading a new builtin
73 .\"O from a shared object.
74 .I name
75 ¤¬¥·¥§¥ëÁȤ߹þ¤ß¥³¥Þ¥ó¥É¤Ç̵¤¤¾ì¹ç¤È¡¢
76 ¶¦Í­¥ª¥Ö¥¸¥§¥¯¥È¤«¤é¤Î¿·¤·¤¤ÁȤ߹þ¤ß¥³¥Þ¥ó¥É¤Î¥í¡¼¥É¤Ë¼ºÇÔ¤·¤¿¾ì¹ç¤ò½ü¤­¡¢
77 ÊÖ¤êÃͤϠ0 ¤È¤Ê¤ê¤Þ¤¹¡£
78 .TP
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
83 .\"O .BR eval .
84 .\"O If there are no
85 .\"O .IR args ,
86 .\"O or only null arguments,
87 .\"O .B eval
88 .\"O returns 0.
89 \fIarg\fP ¤¬Æɤ߹þ¤Þ¤ì¡¢·ë¹ç¤µ¤ì¤Æ 1 ¤Ä¤Î¥³¥Þ¥ó¥É¤Ë¤µ¤ì¤Þ¤¹¡£
90 ¼¡¤Ë¡¢¤³¤Î¥³¥Þ¥ó¥É¤Ï¥·¥§¥ë¤ËÆɤ߹þ¤Þ¤ì¤Æ¼Â¹Ô¤µ¤ì¡¢¤½¤Î½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤¬
91 .B eval
92 ¤ÎÃͤȤ·¤ÆÊÖ¤µ¤ì¤Þ¤¹¡£
93 .I args
94 ¤¬Ìµ¤¤¾ì¹ç¤ä¶õ¤Î°ú¤­¿ô¤·¤«¤Ê¤¤¾ì¹ç¤Ë¤Ï
95 .B eval
96 ¤Ï 0 ¤òÊÖ¤·¤Þ¤¹¡£
97 .TP
98 \fBexec\fP [\fB\-cl\fP] [\fB\-a\fP \fIname\fP] [\fIcommand\fP [\fIarguments\fP]]
99 .\"O If
100 .\"O .I command
101 .\"O is specified, it replaces the shell.
102 .\"O No new process is created.  The
103 .\"O .I arguments
104 .\"O become the arguments to \fIcommand\fP.
105 .I command
106 ¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¤È¡¢¥·¥§¥ë¤Ï¤³¤Î¥³¥Þ¥ó¥É¤ËÃÖ¤­´¹¤¨¤é¤ì¤Þ¤¹¡£
107 ¿·¤·¤¤¥×¥í¥»¥¹¤ÏÀ¸À®¤µ¤ì¤Þ¤»¤ó¡£
108 .I arguments
109 ¤Ï \fIcommand\fP ¤ËÂФ¹¤ë°ú¤­¿ô¤È¤Ê¤ê¤Þ¤¹¡£
110 .\"O If the
111 .\"O .B \-l
112 .\"O option is supplied,
113 .\"O the shell places a dash at the beginning of the zeroth arg passed to 
114 .\"O .IR command .
115 .B \-l
116 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤ë¤È¡¢¥·¥§¥ë¤Ï
117 .I command
118 ¤ËÅϤ¹ 0 ÈÖÌܤΥª¥×¥·¥ç¥ó¤ÎÀèƬ¤Ë¥À¥Ã¥·¥å¤òÀßÄꤷ¤Þ¤¹¡£
119 .\"O This is what
120 .\"O .IR login (1)
121 .\"O does.  The
122 .\"O .B \-c
123 .\"O option causes
124 .\"O .I command
125 .\"O to be executed with an empty environment.  If
126 .\"O .B \-a
127 .\"O is supplied, the shell passes
128 .\"O .I name
129 .\"O as the zeroth argument to the executed command.  If
130 .\"O .I command
131 .\"O cannot be executed for some reason, a non-interactive shell exits,
132 .\"O unless the shell option
133 .\"O .B execfail
134 .\"O is enabled, in which case it returns failure.
135 ¤³¤ì¤Ï
136 .IR login (1)
137 ¤¬¹Ô¤¦Æ°ºî¤Ç¤¹¡£
138 .B \-c
139 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤ë¤È¡¢
140 .I command
141 ¤Ï¶õ¤Î´Ä¶­¤Ç¼Â¹Ô¤µ¤ì¤Þ¤¹¡£
142 .B \-a
143 ¤òÍ¿¤¨¤ë¤È¡¢¥·¥§¥ë¤Ï¼Â¹Ô¤¹¤ë¥³¥Þ¥ó¥É¤Ë 0 ÈÖÌܤΰú¤­¿ô¤È¤·¤Æ
144 .I name
145 ¤òÅϤ·¤Þ¤¹¡£²¿¤é¤«¤ÎÍýͳ¤Ç
146 .I command
147 ¤¬¼Â¹Ô¤Ç¤­¤Ê¤¤¾ì¹ç¤Ë¤ÏÈóÂÐÏÃŪ¥·¥§¥ë¤Ï½ªÎ»¤·¤Þ¤¹¡£
148 ¤¿¤À¤·¥·¥§¥ë¥ª¥×¥·¥ç¥ó
149 .B execfail
150 ¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï´Þ¤Þ¤ì¤º¡¢¤³¤Î¾ì¹ç¤Ë¤Ïµ¶¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£
151 .\"O An interactive shell returns failure if the file cannot be executed.
152 .\"O If
153 .\"O .I command
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 ¥Õ¥¡¥¤¥ë¤¬¼Â¹Ô¤Ç¤­¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢ÂÐÏÃŪ¥·¥§¥ë¤Ïµ¶¤òÊÖ¤·¤Þ¤¹¡£
158 .I command
159 ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢Ç¤°Õ¤Î¥ê¥À¥¤¥ì¥¯¥È¤Ï¥«¥ì¥ó¥È¥·¥§¥ë¤Ç¸ú²Ì¤òɽ¤·¡¢
160 ½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤Ï 0 ¤È¤Ê¤ê¤Þ¤¹¡£
161 ¥ê¥À¥¤¥ì¥¯¥È¤Î¥¨¥é¡¼¤¬µ¯¤­¤¿¾ì¹ç¤Ë¤Ï¡¢½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤Ï 1 ¤È¤Ê¤ê¤Þ¤¹¡£
162 .TP
163 \fBexit\fP [\fIn\fP]
164 .\"O Cause the shell to exit
165 .\"O with a status of \fIn\fP.  If
166 .\"O .I n
167 .\"O is omitted, the exit status
168 .\"O is that of the last command executed.
169 .\"O A trap on
170 .\"O .SM
171 .\"O .B EXIT
172 .\"O is executed before the shell terminates.
173 ¥¹¥Æ¡¼¥¿¥¹ \fIn\fP ¤Ç¥·¥§¥ë¤ò½ªÎ»¤µ¤»¤Þ¤¹¡£
174 .I n
175 ¤ò¾Êά¤¹¤ë¤È¡¢
176 ½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤ÏºÇ¸å¤Ë¼Â¹Ô¤·¤¿¥³¥Þ¥ó¥É¤Î½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤È¤Ê¤ê¤Þ¤¹¡£
177 ¥·¥§¥ë¤¬½ªÎ»¤¹¤ëÁ°¤Ë¤Ï¡¢
178 .SM
179 .B EXIT
180 ¤ËÂФ¹¤ë¥È¥é¥Ã¥×¤¬¼Â¹Ô¤µ¤ì¤Þ¤¹¡£
181 .TP
182 .PD 0
183 \fBexport\fP [\fB\-fn\fP\^] [\fIname\fP[=\fIword\fP]] ...
184 .TP
185 .B export \-p
186 .PD
187 .\"O The supplied
188 .\"O .I names
189 .\"O are marked for automatic export to the environment of
190 .\"O subsequently executed commands.  If the 
191 .\"O .B \-f
192 .\"O option is given,
193 .\"O the 
194 .\"O .I names
195 .\"O refer to functions.
196 Í¿¤¨¤é¤ì¤¿
197 .I name
198 ¤Ë¤Ï°õ¤¬ÉÕ¤±¤é¤ì¡¢°Ê¹ß¤Ë¼Â¹Ô¤¹¤ë¥³¥Þ¥ó¥É¤Î´Ä¶­¤ËÂФ·¤Æ
199 ¼«Æ°Åª¤Ë¥¨¥¯¥¹¥Ý¡¼¥È¤µ¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
200 .B \-f
201 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤ë¤È¡¢
202 .I name
203 ¤Ï´Ø¿ô¤ò¼¨¤·¤Þ¤¹¡£
204 .\"O If no
205 .\"O .I names
206 .\"O are given, or if the
207 .\"O .B \-p
208 .\"O option is supplied, a list
209 .\"O of all names that are exported in this shell is printed.
210 .I name
211 ¤òÍ¿¤¨¤Ê¤«¤Ã¤¿¾ì¹ç¤ä¡¢
212 .B \-p
213 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤¿¾ì¹ç¤Ë¤Ï¡¢¤³¤Î¥·¥§¥ëÆâ¤Ç¥¨¥¯¥¹¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ëÁ´¤Æ¤Î
214 ̾Á°¤Î¥ê¥¹¥È¤¬½ÐÎϤµ¤ì¤Þ¤¹¡£
215 .\"O The
216 .\"O .B \-n
217 .\"O option causes the export property to be removed from the
218 .\"O named variables.
219 .B \-n
220 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤ë¤È¡¢»ØÄꤷ¤¿ÊÑ¿ô¤«¤é¥¨¥¯¥¹¥Ý¡¼¥È°À­¤¬¼è¤ê½ü¤«¤ì¤Þ¤¹¡£
221 .\"O .B export
222 .\"O returns an exit status of 0 unless an invalid option is
223 .\"O encountered,
224 .\"O one of the \fInames\fP is not a valid shell variable name, or
225 .\"O .B \-f
226 .\"O is supplied with a
227 .\"O .I name
228 .\"O that is not a function.
229 ÉÔÀµ¤Ê¥ª¥×¥·¥ç¥ó¤¬¤¢¤Ã¤¿¾ì¹ç¡¢
230 \fIname\fP ¤Î¤¤¤º¤ì¤«¤¬ÉÔÀµ¤Ê¥·¥§¥ëÊÑ¿ô̾¤Ç¤¢¤Ã¤¿¾ì¹ç¡¢
231 ´Ø¿ô¤Ç¤Ê¤¤Ì¾Á°¤ËÂФ·¤Æ
232 .B \-f
233 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤¿¾ì¹ç¤ò½ü¤­¡¢
234 .B export
235 ¤Ï½ªÎ»¥¹¥Æ¡¼¥¿¥¹ 0 ¤òÊÖ¤·¤Þ¤¹¡£
236 .TP
237 .PD 0
238 \fBfc\fP [\fB\-e\fP \fIename\fP] [\fB\-nlr\fP] [\fIfirst\fP] [\fIlast\fP]
239 .TP
240 \fBfc\fP \fB\-s\fP [\fIpat\fP=\fIrep\fP] [\fIcmd\fP]
241 .PD
242 .\"O Fix Command.  In the first form, a range of commands from
243 .\"O .I first
244 .\"O to
245 .\"O .I last
246 .\"O is selected from the history list.
247 ¥Õ¥£¥Ã¥¯¥¹¥³¥Þ¥ó¥É (Fix Command)¡£
248 ºÇ½é¤Î·Á¼°¤Ç¤Ï¡¢
249 .I first
250 ¤«¤é
251 .I last
252 ¤Þ¤Ç¤ÎÈϰϤΥ³¥Þ¥ó¥É¤¬ÍúÎò¥ê¥¹¥È¤«¤éÁªÂò¤µ¤ì¤Þ¤¹¡£
253 .\"O .I First
254 .\"O and
255 .\"O .I last
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 
260 .\"O .I last
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
266 .\"O .I first
267 .\"O otherwise.
268 .I first
269 ¤È
270 .I last
271 ¤Ïʸ»úÎó (¤½¤Îʸ»úÎó¤Ç»Ï¤Þ¤ëºÇ¸å¤Î¥³¥Þ¥ó¥É) ¤ä
272 ¿ôÃÍ (ÍúÎò¥ê¥¹¥ÈÃæ¤Ç¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹¡£
273 Éé¤ÎÃͤϸ½ºß¤Î¥³¥Þ¥ó¥ÉÈֹ椫¤é¤Î¥ª¥Õ¥»¥Ã¥È¤È¤·¤Æ°·¤ï¤ì¤Þ¤¹)
274 ¤È¤·¤Æ»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£
275 .I last
276 ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢¥ê¥¹¥Èɽ¼¨¤Î¾ì¹ç¤Ë¤Ï¸½ºß¤Î¥³¥Þ¥ó¥É¤¬ÀßÄꤵ¤ì
277 (¤·¤¿¤¬¤Ã¤Æ
278 .if n ``fc \-l \-10''
279 .if t \f(CWfc \-l \-10\fP
280 ¤ÇºÇ¶á¤Î¥³¥Þ¥ó¥É 10 ¸Ä¤¬½ÐÎϤµ¤ì¤Þ¤¹)¡¢¤½¤ì°Ê³°¤Î¾ì¹ç¤Ë¤Ï
281 .I first
282 ¤¬ÀßÄꤵ¤ì¤Þ¤¹¡£
283 .\"O If
284 .\"O .I first
285 .\"O is not specified it is set to the previous
286 .\"O command for editing and \-16 for listing.
287 .I first
288 ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢ÊÔ½¸¤Î¾ì¹ç¤Ë¤ÏÁ°¤Î¥³¥Þ¥ó¥É¤¬ÀßÄꤵ¤ì¡¢
289 ¥ê¥¹¥Èɽ¼¨¤Î¾ì¹ç¤Ë¤Ï \-16 ¤¬ÀßÄꤵ¤ì¤Þ¤¹¡£
290 .sp 1
291 .\"O The
292 .\"O .B \-n
293 .\"O option suppresses
294 .\"O the command numbers when listing.  The
295 .\"O .B \-r
296 .\"O option reverses the order of
297 .\"O the commands.  If the
298 .\"O .B \-l
299 .\"O option is given,
300 .\"O the commands are listed on
301 .\"O standard output.  Otherwise, the editor given by
302 .\"O .I ename
303 .\"O is invoked
304 .\"O on a file containing those commands.  If
305 .\"O .I ename
306 .\"O is not given, the
307 .\"O value of the
308 .\"O .SM
309 .\"O .B FCEDIT
310 .\"O variable is used, and
311 .\"O the value of
312 .\"O .SM
313 .\"O .B EDITOR
314 .\"O if
315 .\"O .SM
316 .\"O .B FCEDIT
317 .\"O is not set.  If neither variable is set,
318 .\"O .FN vi
319 .\"O is used.  When editing is complete, the edited commands are
320 .\"O echoed and executed.
321 .B \-n
322 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤ë¤È¥ê¥¹¥È¤Ë¤Ï¥³¥Þ¥ó¥ÉÈֹ椬ÉÕ¤­¤Þ¤»¤ó¡£
323 .B \-r
324 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤ë¤È¥³¥Þ¥ó¥É¤Î½ç½ø¤¬µÕ¤Ë¤Ê¤ê¤Þ¤¹¡£
325 .B \-l
326 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤ë¤È¡¢¥³¥Þ¥ó¥É¤Ïɸ½à½ÐÎϤ˥ꥹ¥Èɽ¼¨¤µ¤ì¤Þ¤¹¡£
327 ¤½¤ì°Ê³°¤Î¾ì¹ç¤Ë¤Ï¡¢¤³¤ì¤é¤Î¥³¥Þ¥ó¥É¤¬½ñ¤«¤ì¤¿¥Õ¥¡¥¤¥ë¤ËÂФ·¡¢
328 .I ename
329 ¤Ç»ØÄꤷ¤¿¥¨¥Ç¥£¥¿¤¬µ¯Æ°¤µ¤ì¤Þ¤¹¡£
330 .I ename
331 ¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢ÊÑ¿ô
332 .SM
333 .B FCEDIT
334 ¤ÎÃͤ¬»È¤ï¤ì¡¢
335 .SM
336 .B FCEDIT
337 ¤âÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï
338 .SM
339 .B EDITOR
340 ¤ÎÃͤ¬»È¤ï¤ì¤Þ¤¹¡£
341 ¤É¤Á¤é¤ÎÊÑ¿ô¤âÀßÄꤵ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢
342 .FN vi
343 ¤¬»È¤ï¤ì¤Þ¤¹¡£
344 ÊÔ½¸¤¬½ªÎ»¤¹¤ë¤È¡¢ÊÔ½¸¤µ¤ì¤¿¥³¥Þ¥ó¥É¤¬¥¨¥³¡¼É½¼¨¤µ¤ì¡¢¼Â¹Ô¤µ¤ì¤Þ¤¹¡£
345 .sp 1
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,
353 .\"O so that typing
354 .\"O .if n ``r cc''
355 .\"O .if t \f(CWr cc\fP
356 .\"O runs the last command beginning with
357 .\"O .if n ``cc''
358 .\"O .if t \f(CWcc\fP
359 .\"O and typing
360 .\"O .if n ``r''
361 .\"O .if t \f(CWr\fP
362 .\"O re-executes the last command.
363 ¤³¤ì¤òÍøÍѤ·¤Æ¤¤¤ëÊØÍø¤Ê¥¨¥¤¥ê¥¢¥¹¤Ë
364 .if n ``r=fc -s''
365 .if t \f(CWr='fc \-s'\fP
366 ¤¬¤¢¤ê¤Þ¤¹¡£
367 ¤³¤ì¤òÍѤ¤¤ë¤È
368 .if n ``r cc''
369 .if t \f(CWr cc\fP
370 ¤ÎÆþÎϤˤè¤Ã¤Æ
371 .if n ``cc''
372 .if t \f(CWcc\fP
373 ¤Ç»Ï¤Þ¤ëºÇ¤â¿·¤·¤¤¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤Ç¤­¡¢
374 .if n ``r''
375 .if t \f(CWr\fP
376 ¤ÎÆþÎϤˤè¤êľÁ°¤Î¥³¥Þ¥ó¥É¤òºÆ¼Â¹Ô¤Ç¤­¤Þ¤¹¡£
377 .sp 1
378 .\"O If the first form is used, the return value is 0 unless an invalid
379 .\"O option is encountered or
380 .\"O .I first
381 .\"O or
382 .\"O .I last
383 .\"O specify history lines out of range.
384 ºÇ½é¤Î·Á¼°¤òÍѤ¤¤¿¾ì¹ç¡¢ÉÔÀµ¤Ê¥ª¥×¥·¥ç¥ó¤¬¤¢¤ë¤«¡¢
385 .I first
386 ¤Þ¤¿¤Ï
387 .I last
388 ¤¬ÍúÎò¹Ô¤ÎÈϰϳ°¤ò»ØÄꤷ¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢ÊÖ¤êÃͤϠ0 ¤È¤Ê¤ê¤Þ¤¹¡£
389 .\"O If the
390 .\"O .B \-e
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
395 .\"O .I cmd
396 .\"O does not specify a valid history line, in which case
397 .\"O .B fc
398 .\"O returns failure.
399 .B \-e
400 ¥ª¥×¥·¥ç¥ó¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¡¢ÊÖ¤êÃͤϺǸå¤Ë¼Â¹Ô¤µ¤ì¤¿¥³¥Þ¥ó¥É¤ÎÊÖ¤êÃͤȤʤ뤫¡¢
401 ¤¢¤ë¤¤¤Ï¥³¥Þ¥ó¥É¤Î°ì»þ¥Õ¥¡¥¤¥ë¤Ç¥¨¥é¡¼¤¬µ¯¤­¤¿¾ì¹ç¤Ë¤Ïµ¶¤È¤Ê¤ê¤Þ¤¹¡£
402 2 ÈÖÌܤηÁ¼°¤òÍѤ¤¤¿¾ì¹ç¡¢
403 ½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤ÏºÆ¼Â¹Ô¤µ¤ì¤¿¥³¥Þ¥ó¥É¤Î½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤È¤Ê¤ê¤Þ¤¹¡£
404 ¤¿¤À¤·¡¢
405 .I cmd
406 ¤¬Í­¸ú¤ÊÍúÎò¹Ô¤ò»ØÄꤷ¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï´Þ¤Þ¤ì¤º¡¢¤³¤Î¾ì¹ç¤Ë¤Ï
407 .B fc
408 ¤Ïµ¶¤òÊÖ¤·¤Þ¤¹¡£
409 .TP
410 \fBfg\fP [\fIjobspec\fP]
411 .\"O Resume
412 .\"O .I jobspec
413 .\"O in the foreground, and make it the current job.
414 .I jobspec
415 ¤Î¼Â¹Ô¤ò¥Õ¥©¥¢¥°¥é¥¦¥ó¥É¤ÇºÆ³«¤·¡¢¤³¤ì¤ò¥«¥ì¥ó¥È¥¸¥ç¥Ö¤È¤·¤Þ¤¹¡£
416 .\"O If
417 .\"O .I jobspec
418 .\"O is not present, the shell's notion of the \fIcurrent job\fP is used.
419 .I jobspec
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
424 .\"O .I jobspec
425 .\"O does not specify a valid job or
426 .\"O .I jobspec
427 .\"O specifies a job that was started without job control.
428 ÊÖ¤êÃͤϥե©¥¢¥°¥é¥¦¥ó¥É¤ÇºÆ³«¤µ¤ì¤¿¥³¥Þ¥ó¥É¤ÎÊÖ¤êÃͤǤ¹¤¬¡¢
429 ¥¸¥ç¥ÖÀ©¸æ¤¬Ìµ¸ú¤Ç¤¢¤ë¤È¤­¤Ë¼Â¹Ô¤·¤¿¾ì¹ç¤ä¡¢
430 ¥¸¥ç¥ÖÀ©¸æ¤¬Í­¸ú¤Ç¤¢¤Ã¤Æ¤â
431 .I jobspec
432 ¤¬Í­¸ú¤Ê¥¸¥ç¥Ö¤ò»ØÄꤷ¤Æ¤¤¤Ê¤¤¾ì¹ç¤ä
433 .I jobspec
434 ¤¬¥¸¥ç¥ÖÀ©¸æ̵¤·¤Ç¼Â¹Ô¤·¤¿¥¸¥ç¥Ö¤ò»ØÄꤷ¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ïµ¶¤È¤Ê¤ê¤Þ¤¹¡£
435 .TP
436 \fBgetopts\fP \fIoptstring\fP \fIname\fP [\fIargs\fP]
437 .\"O .B getopts
438 .\"O is used by shell procedures to parse positional parameters.
439 .B getopts
440 ¤Ï¥·¥§¥ë¤Î¼ê³¤­¤¬°ÌÃÖÉÕ¤­¥Ñ¥é¥á¡¼¥¿¤òŸ³«¤¹¤ë¤¿¤á¤Ë»È¤¤¤Þ¤¹¡£
441 .\"O .I optstring
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.
445 .I optstring
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,
454 .\"O .B getopts
455 .\"O places the next option in the shell variable
456 .\"O .IR name ,
457 .\"O initializing
458 .\"O .I name
459 .\"O if it does not exist,
460 .\"O and the index of the next argument to be processed into the
461 .\"O variable
462 .\"O .SM
463 .\"O .BR OPTIND .
464 ¸Æ¤Ó½Ð¤µ¤ì¤ëÅ٤ˡ¢
465 .B getopts
466 ¤Ï¼¡¤Î¥ª¥×¥·¥ç¥ó¤ò¥·¥§¥ëÊÑ¿ô
467 .I name
468 ¤Ë³ÊǼ¤·
469 .RI ( name
470 ¤¬Â¸ºß¤·¤Ê¤±¤ì¤Ð½é´ü²½¤ò¹Ô¤¤¤Þ¤¹)¡¢
471 ¼¡¤Ë½èÍý¤µ¤ì¤ë°ú¤­¿ô¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹¤òÊÑ¿ô
472 .SM
473 .B OPTIND
474 ¤Ë³ÊǼ¤·¤Þ¤¹¡£
475 .\"O .SM
476 .\"O .B OPTIND
477 .\"O is initialized to 1 each time the shell or a shell script
478 .\"O is invoked.  When an option requires an argument,
479 .\"O .B getopts
480 .\"O places that argument into the variable
481 .\"O .SM
482 .\"O .BR OPTARG .
483 .SM
484 .B OPTIND
485 ¤Ï¥·¥§¥ë¤Þ¤¿¤Ï¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤¬¸Æ¤Ó½Ð¤µ¤ì¤ëÅ٤ˠ1 ¤Ë½é´ü²½¤µ¤ì¤Þ¤¹¡£
486 ¥ª¥×¥·¥ç¥ó¤¬°ú¤­¿ô¤òɬÍפȤ¹¤ë¾ì¹ç¤Ë¤Ï¡¢
487 .B getopts
488 ¤Ï¤½¤Î°ú¤­¿ô¤òÊÑ¿ô
489 .SM
490 .B OPTARG
491 ¤Ë³ÊǼ¤·¤Þ¤¹¡£
492 .\"O The shell does not reset
493 .\"O .SM
494 .\"O .B OPTIND
495 .\"O automatically; it must be manually reset between multiple
496 .\"O calls to
497 .\"O .B getopts
498 .\"O within the same shell invocation if a new set of parameters
499 .\"O is to be used.
500 ¥·¥§¥ë¤¬
501 .SM
502 .B OPTIND
503 ¤ò¼«Æ°Åª¤ËºÆÀßÄꤹ¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¡£
504 1 ¤Ä¤Î¥·¥§¥ë¤¬¸Æ¤Ó½Ð¤µ¤ì¤Æ¤¤¤ë´Ö¤ËÊ̤Υѥé¥á¡¼¥¿¤ÎÁȹ礻¤ò»È¤¦¾ì¹ç¤Ë¤Ï¡¢
505 .B getopts
506 ¤Î¸Æ¤Ó½Ð¤·¤Î´Ö¤Ë¼êÆ°¤ÇºÆÀßÄê¤ò¹Ô¤ï¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
507 .sp 1
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 ¤Ë¤Ï ? ¤¬ÀßÄꤵ¤ì¤Þ¤¹¡£
516 .sp 1
517 .\"O .B getopts
518 .\"O normally parses the positional parameters, but if more arguments are
519 .\"O given in
520 .\"O .IR args ,
521 .\"O .B getopts
522 .\"O parses those instead.
523 .B getopts
524 ¤ÏÄ̾°ÌÃÖÉÕ¤­¥Ñ¥é¥á¡¼¥¿¤òŸ³«¤·¤Þ¤¹¤¬¡¢Â¾¤Î°ú¤­¿ô¤¬
525 .I args
526 ¤Ë»ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢
527 .B getopts
528 ¤Ï°ÌÃ֥ѥé¥á¡¼¥¿¤Ç¤Ê¤¯¤³¤ì¤é¤òŸ³«¤·¤Þ¤¹¡£
529 .sp 1
530 .\"O .B getopts
531 .\"O can report errors in two ways.  If the first character of
532 .\"O .I optstring
533 .\"O is a colon,
534 .\"O .I silent
535 .\"O error reporting is used.  In normal operation diagnostic messages
536 .\"O are printed when invalid options or missing option arguments are
537 .\"O encountered.
538 .B getopts
539 ¤Ï 2 Ä̤ê¤ÎÊýË¡¤Ç¥¨¥é¡¼¤òÊó¹ð¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£
540 .I optstring
541 ¤ÎºÇ½é¤Îʸ»ú¤¬¥³¥í¥ó¤Ê¤é¤Ð¡¢
542 .I ÀŤ«¤Ê (silent)
543 ¥¨¥é¡¼Êó¹ð¤¬¹Ô¤ï¤ì¤Þ¤¹¡£
544 Ä̾ï¤ÎÁàºî¤Ç¤Ï¡¢ÉÔÀµ¤Ê¥ª¥×¥·¥ç¥ó¤¬¤¢¤ë¾ì¹ç¤ä
545 ¥ª¥×¥·¥ç¥ó¤Î°ú¤­¿ô¤¬Â­¤ê¤Ê¤¤¾ì¹ç¤Ë¿ÇÃÇ¥á¥Ã¥»¡¼¥¸¤¬½ÐÎϤµ¤ì¤Þ¤¹¡£
546 .\"O If the variable
547 .\"O .SM
548 .\"O .B OPTERR
549 .\"O is set to 0, no error messages will be displayed, even if the first
550 .\"O character of 
551 .\"O .I optstring
552 .\"O is not a colon.
553 ÊÑ¿ô
554 .SM
555 .B OPTERR
556 ¤Ë 0 ¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ÏÁ´¤¯½ÐÎϤµ¤ì¤Þ¤»¤ó¡£
557 ¤³¤ì¤Ï¡¢
558 .I optstring
559 ¤ÎºÇ½é¤Îʸ»ú¤¬¥³¥í¥ó¤Ç¤Ê¤¯¤Æ¤âƱ¤¸¤Ç¤¹¡£
560 .sp 1
561 .\"O If an invalid option is seen,
562 .\"O .B getopts
563 .\"O places ? into
564 .\"O .I name
565 .\"O and, if not silent,
566 .\"O prints an error message and unsets
567 .\"O .SM
568 .\"O .BR OPTARG .
569 ÉÔÀµ¤Ê¥ª¥×¥·¥ç¥ó¤¬¤¢¤Ã¤¿¾ì¹ç¡¢
570 .B getopts
571 ¤Ï ? ¤ò
572 .I name
573 ¤ËÀßÄꤷ¤Þ¤¹¡£
574 ¤µ¤é¤Ë¡¢ÀŤ«¤Ê¥â¡¼¥É¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤¬½ÐÎϤµ¤ì¡¢
575 .SM
576 .B OPTARG
577 ¤ÎÀßÄ꤬¼è¤ê¾Ã¤µ¤ì¤Þ¤¹¡£
578 .\"O If
579 .\"O .B getopts
580 .\"O is silent,
581 .\"O the option character found is placed in
582 .\"O .SM
583 .\"O .B OPTARG
584 .\"O and no diagnostic message is printed.
585 .B getopts
586 ¤¬ÀŤ«¤Ê¥â¡¼¥É¤Ç¤¢¤ì¤Ð¡¢¸«¤Ä¤«¤Ã¤¿¥ª¥×¥·¥ç¥óʸ»ú¤Ï
587 .SM
588 .B OPTARG
589 ¤ËÀßÄꤵ¤ì¡¢¿ÇÃÇ¥á¥Ã¥»¡¼¥¸¤Ï½ÐÎϤµ¤ì¤Þ¤»¤ó¡£
590 .sp 1
591 .\"O If a required argument is not found, and
592 .\"O .B getopts
593 .\"O is not silent,
594 .\"O a question mark (\^\fB?\fP\^) is placed in
595 .\"O .IR name ,
596 .\"O .B OPTARG
597 .\"O is unset, and a diagnostic message is printed.
598 ɬÍפʰú¤­¿ô¤¬¸«¤Ä¤«¤é¤º¡¢¤«¤Ä
599 .B getopts
600 ¤¬ÀŤ«¤Ê¥â¡¼¥É¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢µ¿ÌäÉä (\^\fB?\fP\^) ¤¬
601 .I name
602 ¤ËÀßÄꤵ¤ì¡¢
603 .B OPTARG
604 ¤ÎÀßÄ꤬¼è¤ê¾Ã¤µ¤ì¡¢¿ÇÃÇ¥á¥Ã¥»¡¼¥¸¤¬½ÐÎϤµ¤ì¤Þ¤¹¡£
605 .\"O If
606 .\"O .B getopts
607 .\"O is silent, then a colon (\^\fB:\fP\^) is placed in
608 .\"O .I name
609 .\"O and
610 .\"O .SM
611 .\"O .B OPTARG
612 .\"O is set to the option character found.
613 .B getopts
614 ¤¬ÀŤ«¤Ê¥â¡¼¥É¤Ê¤é¤Ð¡¢¥³¥í¥ó (\^\fB:\fP\^) ¤¬
615 .I name
616 ¤ËÀßÄꤵ¤ì¡¢
617 .SM
618 .B OPTARG
619 ¤Ë¤Ï¸«¤Ä¤«¤Ã¤¿¥ª¥×¥·¥ç¥óʸ»ú¤¬ÀßÄꤵ¤ì¤Þ¤¹¡£
620 .sp 1
621 .\"O .B getopts
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
624 .\"O error occurs.
625 (»ØÄê¤Î̵ͭ¤Ë´Ø·¸¤Ê¤¯) ¥ª¥×¥·¥ç¥ó¤¬¸«¤Ä¤«¤Ã¤¿¾ì¹ç¡¢
626 .B getopts
627 ¤Ï¿¿¤òÊÖ¤·¤Þ¤¹¡£
628 ¥ª¥×¥·¥ç¥ó¤ÎºÇ¸å¤ËÅþ㤷¤¿¾ì¹ç¤ä¡¢¥¨¥é¡¼¤¬µ¯¤­¤¿¾ì¹ç¤Ë¤Ï¡¢
629 .B getopts
630 ¤Ïµ¶¤òÊÖ¤·¤Þ¤¹¡£
631 .TP
632 \fBhash\fP [\fB\-r\fP] [\fB\-p\fP \fIfilename\fP] [\fIname\fP]
633 .\"O For each
634 .\"O .IR name ,
635 .\"O the full file name of the command is determined by searching
636 .\"O the directories in
637 .\"O .B $PATH
638 .\"O and remembered.
639 .I name
640 ¤½¤ì¤¾¤ì¤ËÂФ·¤Æ¡¢
641 .B $PATH
642 Æâ¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Î¸¡º÷¤ò¹Ô¤Ã¤Æ¥³¥Þ¥ó¥É¤Î´°Á´¤Ê¥Õ¥¡¥¤¥ë̾¤òÄ´¤Ù¡¢
643 ¤½¤Î·ë²Ì¤òµ­²±¤·¤Þ¤¹¡£
644 .\"O If the
645 .\"O .B \-p
646 .\"O option is supplied, no path search is performed, and
647 .\"O .I filename
648 .\"O is used as the full file name of the command.
649 .B \-p
650 ¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤ë¤È¡¢¥Ñ¥¹¸¡º÷¤Ï¼Â¹Ô¤µ¤ì¤º¡¢
651 .I filename
652 ¤¬¤½¤Î¥³¥Þ¥ó¥É¤Î´°Á´¤Ê¥Õ¥¡¥¤¥ë̾¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£
653 .\"O The
654 .\"O .B \-r
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
659 .\"O .I name
660 .\"O is not found or an invalid option is supplied.
661 .B \-r
662 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤ë¤È¡¢¥·¥§¥ë¤Ïµ­²±¤·¤Æ¤¤¤ë°ÌÃÖ¤òÁ´¤Æ˺¤ì¤Þ¤¹¡£
663 °ú¤­¿ô¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢
664 µ­²±¤·¤Æ¤¤¤ë¥³¥Þ¥ó¥É¤Ë´Ø¤¹¤ë¾ðÊ󤬽ÐÎϤµ¤ì¤Þ¤¹¡£
665 .I name
666 ¤¬¸«¤Ä¤«¤é¤Ê¤¤¾ì¹ç¤ÈÉÔÀµ¤Ê¥ª¥×¥·¥ç¥ó¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤ò½ü¤­¡¢
667 Êֵѥ¹¥Æ¡¼¥¿¥¹¤Ï¿¿¤È¤Ê¤ê¤Þ¤¹¡£
668 .TP
669 \fBhelp\fP [\fB\-s\fP] [\fIpattern\fP]
670 .\"O Display helpful information about builtin commands.  If
671 .\"O .I pattern
672 .\"O is specified,
673 .\"O .B help
674 .\"O gives detailed help on all commands matching
675 .\"O .IR pattern ;
676 .\"O otherwise help for all the builtins and shell control structures
677 .\"O is printed.
678 ÁȤ߹þ¤ß¥³¥Þ¥ó¥É¤Î¥Ø¥ë¥×¾ðÊó¤òɽ¼¨¤·¤Þ¤¹¡£
679 .I pattern
680 ¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢
681 .B help
682 ¤Ï¡¢¤³¤Î
683 .I pattern
684 ¤Ë¥Þ¥Ã¥Á¤¹¤ëÁ´¤Æ¤Î¥³¥Þ¥ó¥É¤Ë´Ø¤¹¤ë¾Ü¤·¤¤¥Ø¥ë¥×¤ò½ÐÎϤ·¤Þ¤¹¡£
685 ¤½¤ì°Ê³°¤Î¾ì¹ç¤Ë¤Ï¡¢
686 Á´¤Æ¤ÎÁȤ߹þ¤ß¥³¥Þ¥ó¥É¤ÈÀ©¸æ¹½Â¤¤Ë¤Ä¤¤¤Æ¤ÎÀâÌÀ¤¬½ÐÎϤµ¤ì¤Þ¤¹¡£
687 .\"O The \fB\-s\fP option restricts the information displayed to a short
688 .\"O usage synopsis.
689 \fB\-s\fP ¥ª¥×¥·¥ç¥ó¤Ï¡¢É½¼¨¤µ¤ì¤ë¥Ø¥ë¥×¾ðÊó¤òû¤¤½ñ¼°¤Î»ÈÍÑË¡¤Ë¸ÂÄꤷ¤Þ¤¹¡£
690 .\"O The return status is 0 unless no command matches
691 .\"O .IR pattern .
692 .I pattern
693 ¤Ë¥Þ¥Ã¥Á¤¹¤ë¥³¥Þ¥ó¥É¤¬Á´¤¯¤Ê¤¤¾ì¹ç¤ò½ü¤­¡¢½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤Ï 0 ¤Ç¤¹¡£
694 .TP
695 .PD 0
696 \fBhistory [\fIn\fP]
697 .TP
698 \fBhistory\fP \fB\-c\fP
699 .TP
700 \fBhistory \-d\fP \fIoffset\fP
701 .TP
702 \fBhistory\fP \fB\-anrw\fP [\fIfilename\fP]
703 .TP
704 \fBhistory\fP \fB\-p\fP \fIarg\fP [\fIarg ...\fP]
705 .TP
706 \fBhistory\fP \fB\-s\fP \fIarg\fP [\fIarg ...\fP]
707 .PD
708 .\"O With no options, display the command
709 .\"O history list with line numbers.  Lines listed
710 .\"O with a 
711 .\"O .B *
712 .\"O have been modified.  An argument of
713 .\"O .I n
714 .\"O lists only the last
715 .\"O .I n
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
718 .\"O .SM
719 .\"O .B HISTFILE
720 .\"O is used.  Options, if supplied, have the following meanings:
721 ¥ª¥×¥·¥ç¥ó¤¬¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢¹ÔÈÖ¹æÉÕ¤­¤Ç¥³¥Þ¥ó¥ÉÍúÎò¤òɽ¼¨¤·¤Þ¤¹¡£
722 .B *
723 ÉÕ¤­¤Ç¥ê¥¹¥Èɽ¼¨¤µ¤ì¤Æ¤¤¤ë¹Ô¤ÏÊѹ¹¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
724 °ú¤­¿ô
725 .I n
726 ¤ò»ØÄꤹ¤ë¤È¡¢ºÇ¿·¤Î
727 .I n
728 ¹Ô¤À¤±¤¬¥ê¥¹¥Èɽ¼¨¤µ¤ì¤Þ¤¹¡£
729 \fIfilename\fP ¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¾ì¹ç¡¢
730 ¤³¤ì¤ÏÍúÎò¥Õ¥¡¥¤¥ë¤Î̾Á°¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£
731 ¤³¤ì¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢
732 .SM
733 .B HISTFILE
734 ¤ÎÃͤ¬»È¤ï¤ì¤Þ¤¹¡£(»ØÄꤵ¤ì¤Æ¤¤¤ì¤Ð) ¥ª¥×¥·¥ç¥ó¤Ï°Ê²¼¤Î°ÕÌ£¤ò»ý¤Á¤Þ¤¹:
735 .RS
736 .PD 0
737 .TP
738 .B \-c
739 .\"O Clear the history list by deleting all the entries.
740 ÍúÎò¥ê¥¹¥È¤ÎÁ´¤Æ¤Î¥¨¥ó¥È¥ê¤òºï½ü¤·¡¢¥¯¥ê¥¢¤·¤Þ¤¹¡£
741 .TP
742 \fB\-d\fP \fIoffset\fP
743 .\"O Delete the history entry at position \fIoffset\fP.
744 \fIoffset\fP ÈÖÌܤˤ¢¤ëÍúÎò¥¨¥ó¥È¥ê¤òºï½ü¤·¤Þ¤¹¡£
745 .TP
746 .B \-a
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.
749 ¡Ö¿·¤·¤¤¡×ÍúÎò¹Ô
750 (\fBbash\fP ¤Î¸½ºß¤Î¥»¥Ã¥·¥ç¥ó¤Î³«»Ï°ÊÍèÆþÎϤµ¤ì¤¿ÍúÎò¹Ô) ¤ò
751 ÍúÎò¥Õ¥¡¥¤¥ë¤ËÄɲä·¤Þ¤¹¡£
752 .TP
753 .B \-n
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 ÍúÎò¥Õ¥¡¥¤¥ë¤ËÄɲ䵤줿¹Ô¤Ç¤¹¡£
762 .TP
763 .B \-r
764 .\"O Read the contents of the history file
765 .\"O and use them as the current history.
766 ÍúÎò¥Õ¥¡¥¤¥ë¤ÎÆâÍƤòÆɤ߹þ¤ß¡¢¤³¤ì¤é¤ò¸½ºß¤ÎÍúÎò¤È¤·¤ÆÍѤ¤¤Þ¤¹¡£
767 .TP
768 .B \-w
769 .\"O Write the current history to the history file, overwriting the
770 .\"O history file's contents.
771 ¸½ºß¤ÎÍúÎò¤òÍúÎò¥Õ¥¡¥¤¥ë¤Ë½ñ¤­¹þ¤ß¤Þ¤¹¡£ÍúÎò¥Õ¥¡¥¤¥ë¤ÎÆâÍƤϾå½ñ¤­¤µ¤ì¤Þ¤¹¡£
772 .TP
773 .B \-p
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 ¤Ï¤½¤ì¤¾¤ì¥¯¥©¡¼¥È¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
782 .TP
783 .B \-s
784 .\"O Store the
785 .\"O .I args
786 .\"O in the history list as a single entry.  The last command in the
787 .\"O history list is removed before the
788 .\"O .I args
789 .\"O are added.
790 .I args
791 ¤ò 1 ¤Ä¤Î¥¨¥ó¥È¥ê¤È¤·¤ÆÍúÎò¥ê¥¹¥È¤Ë³ÊǼ¤·¤Þ¤¹¡£
792 ÍúÎò¥ê¥¹¥È¤ÎºÇ¸å¤Î¥³¥Þ¥ó¥É¤Ï¡¢
793 .I args
794 ¤¬Äɲ䵤ì¤ëÁ°¤Ëºï½ü¤µ¤ì¤Þ¤¹¡£
795 .PD
796 .PP
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 ¤Ë¤Ê¤ê¤Þ¤¹¡£
806 .RE
807 .TP
808 .PD 0
809 \fBjobs\fP [\fB\-lnprs\fP] [ \fIjobspec\fP ... ]
810 .TP
811 \fBjobs\fP \fB\-x\fP \fIcommand\fP [ \fIargs\fP ... ]
812 .PD
813 .\"O The first form lists the active jobs.  The options have the following
814 .\"O meanings:
815 ºÇ½é¤Î·Á¼°¤ò¼Â¹Ô¤¹¤ë¤È¡¢¥¢¥¯¥Æ¥£¥Ö¤Ê¥¸¥ç¥Ö¤¬¥ê¥¹¥Èɽ¼¨¤µ¤ì¤Þ¤¹¡£
816 ¥ª¥×¥·¥ç¥ó¤Ï°Ê²¼¤Î°ÕÌ£¤ò»ý¤Á¤Þ¤¹:
817 .RS
818 .PD 0
819 .TP
820 .B \-l
821 .\"O List process IDs
822 .\"O in addition to the normal information.
823 Ä̾ï¤Î¾ðÊó¤Ë²Ã¤¨¤Æ¡¢¥×¥í¥»¥¹ ID ¤ò¥ê¥¹¥Èɽ¼¨¤·¤Þ¤¹¡£
824 .TP
825 .B \-p
826 .\"O List only the process ID of the job's process group
827 .\"O leader.
828 ¤½¤Î¥¸¥ç¥Ö¤¬Â°¤¹¤ë¥×¥í¥»¥¹¥°¥ë¡¼¥×¤Î¥ê¡¼¥À¡¼¤Î¥×¥í¥»¥¹ ID ¤À¤±¤òɽ¼¨¤·¤Þ¤¹¡£
829 .TP
830 .B \-n
831 .\"O Display information only about jobs that have changed status since
832 .\"O the user was last notified of their status.
833 ¥æ¡¼¥¶¤¬¥¹¥Æ¡¼¥¿¥¹¤òºÇ¸å¤ËÄÌÃΤµ¤ì¤Æ°ÊÍè¡¢
834 ¥¹¥Æ¡¼¥¿¥¹¤ÎÊѹ¹¤¬¤¢¤Ã¤¿¥¸¥ç¥Ö¤Ë´Ø¤¹¤ë¾ðÊó¤À¤±¤òɽ¼¨¤·¤Þ¤¹¡£
835 .TP
836 .B \-r
837 .\"O Restrict output to running jobs.
838 ¼Â¹ÔÃæ¤Î¥¸¥ç¥Ö¤À¤±½ÐÎϤ¹¤ë¤è¤¦¤ËÀ©¸Â¤·¤Þ¤¹¡£
839 .TP
840 .B \-s
841 .\"O Restrict output to stopped jobs.
842 Ää»ßÃæ¤Î¥¸¥ç¥Ö¤À¤±½ÐÎϤ¹¤ë¤è¤¦¤ËÀ©¸Â¤·¤Þ¤¹¡£
843 .PD
844 .PP
845 .\"O If
846 .\"O .I jobspec
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
849 .\"O or an invalid
850 .\"O .I jobspec
851 .\"O is supplied.
852 .I jobspec
853 ¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¾ì¹ç¡¢
854 ¤½¤Î¥¸¥ç¥Ö¤Ë´Ø¤¹¤ë¾ðÊó¤À¤±¤¬½ÐÎϤµ¤ì¤ë¤è¤¦¤ËÀ©¸Â¤µ¤ì¤Þ¤¹¡£
855 ÉÔÀµ¤Ê¥ª¥×¥·¥ç¥ó¤¬¤¢¤ë¾ì¹ç¤ä¡¢ÉÔÀµ¤Ê
856 .I jobspec
857 ¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤ò½ü¤­¡¢Êֵѥ¹¥Æ¡¼¥¿¥¹¤Ï 0 ¤Ç¤¹¡£
858 .PP
859 .\"O If the
860 .\"O .B \-x
861 .\"O option is supplied,
862 .\"O .B jobs
863 .\"O replaces any
864 .\"O .I jobspec
865 .\"O found in
866 .\"O .I command
867 .\"O or
868 .\"O .I args
869 .\"O with the corresponding process group ID, and executes
870 .\"O .I command
871 .\"O passing it
872 .\"O .IR args ,
873 .\"O returning its exit status.
874 .B \-x
875 ¥ª¥×¥·¥ç¥ó¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¡¢
876 .B jobs
877 ¤Ï
878 .I command
879 ¤ä
880 .I args
881 Ãæ¤Ç¸«¤Ä¤«¤Ã¤¿
882 .I jobspec
883 ¤òÁ´¤ÆÂбþ¤¹¤ë¥×¥í¥»¥¹¥°¥ë¡¼¥× ID ¤ËÃÖ¤­´¹¤¨¡¢
884 .I args
885 ¤òÅϤ·¤Æ
886 .I command
887 ¤ò¼Â¹Ô¤·¡¢¤½¤Î½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤òÊÖ¤·¤Þ¤¹¡£
888 .RE
889 .TP
890 .PD 0
891 \fBkill\fP [\fB\-s\fP \fIsigspec\fP | \fB\-n\fP \fIsignum\fP | \fB\-\fP\fIsigspec\fP] [\fIpid\fP | \fIjobspec\fP] ...
892 .TP
893 \fBkill\fP \fB\-l\fP [\fIsigspec\fP | \fIexit_status\fP]
894 .PD
895 .\"O Send the signal named by
896 .\"O .I sigspec
897 .\"O or
898 .\"O .I signum
899 .\"O to the processes named by
900 .\"O .I pid
901 .\"O or
902 .\"O .IR jobspec .
903 .I sigspec
904 ¤Þ¤¿¤Ï
905 .I signum
906 ¤Ç»ØÄꤵ¤ì¤¿¥·¥°¥Ê¥ë¤ò¡¢
907 .I pid
908 ¤Þ¤¿¤Ï
909 .I jobspec
910 ¤Ç»ØÄꤵ¤ì¤¿¥×¥í¥»¥¹¤ËÁ÷¤ê¤Þ¤¹¡£
911 .\"O .I sigspec
912 .\"O is either a signal name such as
913 .\"O .SM
914 .\"O .B SIGKILL
915 .\"O or a signal number;
916 .I sigspec
917 ¤Ï
918 .SM
919 .B SIGKILL
920 ¤Î¤è¤¦¤Ê¥·¥°¥Ê¥ë̾¡¢¤Þ¤¿¤Ï¥·¥°¥Ê¥ë¤ÎÈÖ¹æ¤Ç¤¹¡£
921 .\"O .I signum
922 .\"O is a signal number.  If
923 .\"O .I sigspec
924 .\"O is a signal name, the name may be
925 .\"O given with or without the
926 .\"O .SM
927 .\"O .B SIG
928 .\"O prefix.
929 .I signum
930 ¤Ï¥·¥°¥Ê¥ë¤ÎÈÖ¹æ¤Ç¤¹¡£
931 .I sigspec
932 ¤¬¥·¥°¥Ê¥ë̾¤Ê¤é¤Ð¡¢¤½¤Î̾Á°¤Ë¤Ï
933 .SM
934 .B SIG
935 ¥×¥ì¥Õ¥£¥Ã¥¯¥¹¤Ï¤¢¤Ã¤Æ¤â̵¤¯¤Æ¤â¹½¤¤¤Þ¤»¤ó¡£
936 .\"O If
937 .\"O .I sigspec
938 .\"O is not present, then
939 .\"O .SM
940 .\"O .B SIGTERM
941 .\"O is assumed.
942 .I sigspec
943 ¤¬Ìµ¤¤¾ì¹ç¤Ë¤Ï¡¢
944 .SM
945 .B SIGTERM
946 ¤¬»ØÄꤵ¤ì¤¿¤â¤Î¤È¤·¤Þ¤¹¡£
947 .\"O An argument of
948 .\"O .B \-l
949 .\"O lists the signal names.
950 °ú¤­¿ô¤Ë
951 .B \-l
952 ¤òÍ¿¤¨¤ë¤È¥·¥°¥Ê¥ë̾¤¬¥ê¥¹¥Èɽ¼¨¤µ¤ì¤Þ¤¹¡£
953 .\"O If any arguments are supplied when
954 .\"O .B \-l
955 .\"O is given, the names of the signals corresponding to the arguments are
956 .\"O listed, and the return status is 0.
957 .B \-l
958 ¤ÈƱ»þ¤Ë°ú¤­¿ô¤òÍ¿¤¨¤ë¤È¡¢°ú¤­¿ô¤ËÂбþ¤¹¤ë¥·¥°¥Ê¥ë¤Î̾Á°¤¬¥ê¥¹¥Èɽ¼¨¤µ¤ì¡¢
959 ½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤Ï 0 ¤È¤Ê¤ê¤Þ¤¹¡£
960 .\"O The \fIexit_status\fP argument to
961 .\"O .B \-l
962 .\"O is a number specifying either a signal number or the exit status of
963 .\"O a process terminated by a signal.
964 .B \-l
965 ¤ËÂФ¹¤ë°ú¤­¿ô \fIexit_status\fP ¤Ï¡¢
966 ¥·¥°¥Ê¥ëÈֹ桢¤Þ¤¿¤Ï¥·¥°¥Ê¥ë¤Ë¤è¤Ã¤Æ½ªÎ»¤µ¤»¤é¤ì¤¿
967 ¥×¥í¥»¥¹¤Î½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤ò»ØÄꤹ¤ë¿ô¤Ç¤¹¡£
968 .\"O .B kill
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 ¤Ä¤Î¥·¥°¥Ê¥ë¤òÀµ¾ï¤ËÁ÷¤ë¤³¤È¤¬¤Ç¤­¤¿¾ì¹ç¡¢
972 .B kill
973 ¤Ï¿¿¤òÊÖ¤·¤Þ¤¹¡£
974 ¥¨¥é¡¼¤¬µ¯¤­¤¿¾ì¹ç¤äÉÔÀµ¤Ê¥ª¥×¥·¥ç¥ó¤¬¤¢¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢
975 .B kill
976 ¤Ïµ¶¤òÊÖ¤·¤Þ¤¹¡£
977 .TP
978 \fBlet\fP \fIarg\fP [\fIarg\fP ...]
979 .\"O Each
980 .\"O .I arg
981 .\"O is an arithmetic expression to be evaluated (see
982 .\"O .SM
983 .\"O .BR "ARITHMETIC EVALUATION" ).
984 ³Æ
985 .I arg
986 ¤Ïɾ²Á¤µ¤ì¤ë»»½Ñ¼°¤Ç¤¹
987 .SM
988 .RB ( »»½Ñ¼°Å¸³«
989 ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤)¡£
990 .\"O If the last
991 .\"O .I arg
992 .\"O evaluates to 0,
993 .\"O .B let
994 .\"O returns 1; 0 is returned otherwise.
995 ºÇ¸å¤Î
996 .I arg
997 ¤òɾ²Á¤·¤¿·ë²Ì¤¬ 0 ¤Ç¤¢¤ì¤Ð¡¢
998 .B let
999 ¤Ï 1 ¤òÊÖ¤·¤Þ¤¹¡£
1000 ¤½¤ì°Ê³°¤Î¾ì¹ç¤Ë¤Ï¡¢0 ¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£
1001 .TP
1002 \fBlocal\fP [\fIoption\fP] [\fIname\fP[=\fIvalue\fP] ...]
1003 .\"O For each argument, a local variable named
1004 .\"O .I name 
1005 .\"O is created, and assigned
1006 .\"O .IR value .
1007 ¤½¤ì¤¾¤ì¤Î°ú¤­¿ô¤ËÂФ·¤Æ¡¢
1008 .I name 
1009 ¤¬¼¨¤¹¥í¡¼¥«¥ëÊÑ¿ô¤¬À¸À®¤µ¤ì¡¢
1010 .I value
1011 ¤¬ÂåÆþ¤µ¤ì¤Þ¤¹¡£
1012 .\"O The \fIoption\fP can be any of the options accepted by \fBdeclare\fP.
1013 \fIoption\fP ¤Ï¡¢\fBdeclare\fP ¥³¥Þ¥ó¥É¤¬¼õ¤±¼è¤ë¥ª¥×¥·¥ç¥ó¤Ç¤¢¤ì¤Ð¡¢
1014 ¤É¤ì¤Ç¤â¹½¤¤¤Þ¤»¤ó¡£
1015 .\"O When
1016 .\"O .B local
1017 .\"O is used within a function, it causes the variable
1018 .\"O .I name
1019 .\"O to have a visible scope restricted to that function and its children.
1020 ´Ø¿ôÆâ¤Ç
1021 .B local
1022 ¤ò»È¤Ã¤¿¾ì¹ç¡¢¤³¤ÎÊÑ¿ô
1023 .I name
1024 ¤Î²Ä»ë¥¹¥³¡¼¥×¤Ï¡¢¤³¤Î´Ø¿ô¤È¤³¤Î´Ø¿ô¤Î»Ò¤ËÀ©¸Â¤µ¤ì¤Þ¤¹¡£
1025 .\"O With no operands,
1026 .\"O .B local
1027 .\"O writes a list of local variables to the standard output.  It is
1028 .\"O an error to use
1029 .\"O .B local
1030 .\"O when not within a function.  The return status is 0 unless
1031 .\"O .B local
1032 .\"O is used outside a function, an invalid
1033 .\"O .I name
1034 .\"O is supplied, or
1035 .\"O \fIname\fP is a readonly variable.
1036 ¥ª¥Ú¥é¥ó¥É¤¬Ìµ¤¤¾ì¹ç¡¢
1037 .B local
1038 ¤Ï¥í¡¼¥«¥ëÊÑ¿ô¤Î°ìÍ÷¤òɸ½à½ÐÎϤ˽ÐÎϤ·¤Þ¤¹¡£
1039 ´Ø¿ô¤ÎÆâÉô°Ê³°¤Ç
1040 .B local
1041 ¤ò»È¤¦¤È¥¨¥é¡¼¤Ë¤Ê¤ê¤Þ¤¹¡£
1042 .B local
1043 ¤¬´Ø¿ô¤Î³°Éô¤Ç»È¤ï¤ì¤¿¤ê¡¢
1044 ÉÔÀµ¤Ê
1045 .I name
1046 ¤¬Í¿¤¨¤é¤¿¤ê¡¢
1047 \fIname\fP¤¬Æɤ߼è¤êÀìÍѤǤ¢¤Ã¤¿¤ê¤·¤Ê¤±¤ì¤Ð¡¢
1048 .B local
1049 ¤ÎÊֵѥ¹¥Æ¡¼¥¿¥¹¤Ï 0 ¤È¤Ê¤ê¤Þ¤¹¡£
1050 .TP
1051 .B logout
1052 .\"O Exit a login shell.
1053 ¥í¥°¥¤¥ó¥·¥§¥ë¤ò½ªÎ»¤·¤Þ¤¹¡£