From owner-man-jp@jp.freebsd.org  Thu Nov 23 03:42:59 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id DAA40661;
	Thu, 23 Nov 2000 03:42:59 +0900 (JST)
	(envelope-from owner-man-jp@jp.FreeBSD.org)
Received: from oasis.sharplabs.com ([216.65.151.171])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id DAA40656
	for <man-jp@jp.freebsd.org>; Thu, 23 Nov 2000 03:42:57 +0900 (JST)
	(envelope-from kuma@oasis.sharplabs.com)
Received: from oasis.sharplabs.com (localhost.enet.sharplabs.com [127.0.0.1])
	by oasis.sharplabs.com (8.11.0/3.7W) with ESMTP id eAMIgPj72505
	for <man-jp@jp.freebsd.org>; Wed, 22 Nov 2000 10:42:25 -0800 (PST)
Message-Id: <200011221842.eAMIgPj72505@oasis.sharplabs.com>
To: man-jp@jp.freebsd.org
In-reply-to: Your message of "Thu, 23 Nov 2000 02:34:49 JST."
             <3A1C03B9.50E7B2DB@catv1.ccn-net.ne.jp>
Date: Wed, 22 Nov 2000 10:42:25 -0800
From: Norihiro Kumagai <kuma@oasis.sharplabs.com>
Reply-To: man-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: man-jp 2898
Subject: [man-jp 2898] Re: [tcsh.1]Please check comments.
Errors-To: owner-man-jp@jp.freebsd.org
Sender: owner-man-jp@jp.freebsd.org
X-Originator: kuma@oasis.sharplabs.com

$B7'C+$G$9!#(B

$BEvJ}!"L@F|(B23$BF|$+$i(B4$BO"5Y$G$9!#(B
4$BO"5Y%U%k$K;H$C$F!"%Y%$%(%j%"$NM'?M$r?R$M0{Cc$7$F!"(B
$B%b%s%H%l!<$N?eB24[$rNd$d$+$7$K9T$3$&$+$H2h:v$7$F$$$^$9!#(B
$B$=$NA0$K869F$r>e$2$M$P$J$j$^$;$s$,!#(B
($B$J$s$+L!2h2H$_$?$$$K$J$C$F$-$?$J$!(B:-)

In Message <3A1C03B9.50E7B2DB@catv1.ccn-net.ne.jp>,
  OHSAWA Chitoshi <ohsawa@catv1.ccn-net.ne.jp> writes:
> tcsh.1 $B$b$:$$$V$sBN:[$,@0$C$F$-$^$7$?!#(B
> $B:#8e$OFbMF$N6cL#$rB3$1$F$$$/$3$H$K$o$1$G$9$,!"$^$:!"Lu<T!"%A%'%C%/<T$N(B
> $B%3%a%s%H$,;D$C$F$$$k$H$3$m$r$d$C$D$1$^$7$g$&!#(B

$B$*$*!"$*Hh$l$5$^$G$9!#(B
$B;d$,=<J,F0$1$:$K$4LBOG$r$*$+$1$7$^$9!#(B
$B0J2<!"K\MhD4$Y$k$Y$-$H$3$m$bD4$Y$:$K=q$/$@$1=q$-$^$9!#(B
$B$4MF<O$N$[$I!#(B

> (1)
> $B1Q8l86J8!'(BLine 508 - 514
> Spelling correction recognizes user-defined completions (see the
> \fIcomplete\fR builtin command).  If an input word in a position for
> which a completion is defined resembles a word in the completion list,
> spelling correction registers a misspelling and suggests the latter
> word as a correction.  However, if the input word does not match any of
> the possible completions for that position, spelling correction does
> not register a misspelling.
> 
> $BOBLu(B (rev1.5)$B!'(BLine 587 - 594
> $B%9%Z%kD{@5$O!"%f!<%6Dj5A$NJd40$r<1JL$7$^$9(B
> ($BAH$_9~$_%3%^%s%I(B \fIcomplete\fR $B$r;2>H$N$3$H(B)$B!#(B
> $B$b$7!"Jd40$,<B9T$5$l$k0LCV$G!"F~NO$5$l$?C18l$,Jd40%j%9%H$NCf$NC18l$K(B
> $B;w$F$$$?$H$-!"%9%Z%kD{@5$O!"%_%9%9%Z%k$r<($7$F!"8+$D$+$C$?C18l$r(B
> $BD{@58uJd$H$7$FDs0F$7$^$9!#$7$+$7!"F~NO$5$l$?C18l$,$=$N0LCV$G!"(B
> $B$I$NJd408uJd$K$b9gCW$7$J$+$C$?;~!"%9%Z%kD{@5$O!"(B
> $B%_%9%9%Z%k$r<($7$^$;$s!#(B
> .\"kuma: register a misspelling ... $B%_%9%9%Z%k$r<($9(B?

$B%9%Z%kD{@55!G=$K!"8m%9%Z%k$H@5%9%Z%k$N%Z%"$r5-O?$9$k5!G=$,$"$k$J$i!"(B
$B$3$NItJ,$O!"!V%_%9%9%Z%k$r5-O?$7!W$,E,@Z!"(B
$B$J$/$F$b!"!V%_%9%9%Z%k$r5-O?$7!W$G$$$$$s$8$c$J$$$+$J!#(B

> # $B!V!A$O%_%9%9%Z%k$rI=<($9$k$3$H$,$G$-$^$;$s!#!W$O$d$j$9$.!)(B
> # $B$^$@!"!V!A$r;2>H$7$F$/$@$5$$!W!V!A$r;2>H$N$3$H!W!V;2>H!W$,J;B8$7$F$$$^$9!#(B

$B!V;2>H$7$F$/$@$5$$!W$KE}0l$9$k$Y$-(B
Emacs $B$G(B
 M-x query-replace $B;2>H$N$3$H(B -> $B;2>H$7$F$/$@$5$$(B
 M-x query-replace $B;2>H(B -> $B;2>H$7$F$/$@$5$$(B
$B$7$F!"%9%-%C%W$9$Y$-$H$3$m$G(B 'n'$B!"JQ99$9$Y$-$H$3$m$G%9%Z!<%9$rC!$/!#(B

> (2)
> $BOBLu(B (rev1.5)$B!'(BLine 978
> .\" kageyama: builtin command $B!VAH$_9~$_%3%^%s%I!W(B
> $BOBLu(B (rev1.5)$B!'(BLine 985
> .\"kageyama: 'spelling' $B!VDV$j!W(B
> $BOBLu(B (rev1.5)$B!'(BLine 1175
> .\" kageyama: quote ... $B!V%/%)!<%H$9$k!W$GE}0l(B
> 
> # $B$=$N$^$^!"@hF,It$G(B word $B$KEPO?$7$F$$$$$N$G$O!)(B

$B5U$K!";d$NLu$7$?$H$3$m$O!V%9%Z%k!W$K$J$C$F$$$k$N$G!"(B
$B!V%9%Z%k!W"*!VDV$j!W$KE}0l$9$k$Y$-(B
M-x query-replace $B%9%Z%k(B -> $BDV$j(B

> (3)
> $B1Q8l86J8!'(BLine 508 - 514
> $\fIname\fR[\fIselector\fR]
> .TP 8
> ${\fIname\fR[\fIselector\fR]}
> Substitutes only the selected words from the value of \fIname\fR.
> The \fIselector\fR is subjected to `$' substitution and may consist of
> a single number or two numbers separated by a `\-'.
> The first word of a variable's value is numbered `1'.
> If the first number of a range is omitted it defaults to `1'.
> If the last member of a range is omitted it defaults to `$#\fIname\fR'.
> The \fIselector\fR `*' selects all words.
> It is not an error for a range to be empty if the
> second argument is omitted or in range.
> 
> 
> $BOBLu(B (rev1.5)$B!'(BLine 978
> $\fIname\fR[\fIselector\fR]
> .TP 8
> ${\fIname\fR[\fIselector\fR]}
> .\"kageyama:may consist of... "$B9=@.$G$-$k(B"$B!)(B
> \fIname\fR $B$NCM$N$&$AA*Br$7$?C18l$N$_$GCV49$7$^$9!#(B\fIselector\fR $B$O(B
> `$' $BCV49$,E,MQ$5$l!"(B1 $B$D$N?t$^$?$O(B `\-' $B$G6h@Z$C$?(B 2 $B$D$N?t$G(B
> $B9=@.$9$k$3$H$,$G$-$^$9!#JQ?t$NCM$N@hF,$NC18l$O(B 1 $BHVL\$H$7$F?t$($^$9!#(B
> $BHO0O$N:G=i$NCM$r>JN,$7$?>l9g!"%G%U%)%k%H$NCM(B 1 $B$K$J$j$^$9!#HO0O$N(B
> $B:G8e$NCM$r>JN,$7$?>l9g!"%G%U%)%k%H$NCM(B `$#\fIname\fR $B$K$J$j$^$9!#(B
> \fIselector\fR `*' $B$O$9$Y$F$NC18l$rA*Br$7$^$9!#(B2 $BHVL\$N0z?t$,(B
> $B>JN,$5$l$k$+!"$"$k$$$OHO0O$K<}$^$C$F$$$k>l9g!"HO0O$,6u$K$J$C$F$b(B
> $B%(%i!<$K$J$j$^$;$s!#(B
> 
> # may consist of ... $B$O!V9=@.$G$-$k!W$G$$$$$H;W$$$^$9$,!"(B
> # a single number , two numbers $B$O!V?t!W$h$j!V?tCM!W$"$k$$$O!V?t;z!W$NJ}$,(B
> # $B$o$+$j$d$9$$$N$G$O!)(B

$B!V?t;z!W$+$J!#(B

> 
> (4)
> $B1Q8l86J8!'(BLine 1306 - 1310
> Command substitutions inside double
> quotes (`"') retain blanks and tabs; only newlines force new words.  The single
> final newline does not force a new word in any case.  It is thus possible for a
> command substitution to yield only part of a word, even if the command outputs
> a complete line.
> 
> $BOBLu(B (rev1.5)$B!'(BLine 1469
> .\"kageyama: even if... $B$NItJ,$r$b$&>/$7Lu$7$F$_$^$7$?!#(B
> 2 $B=E0zMQId(B (`"') $B$NFbB&$N%3%^%s%ICV49$O!"6uGr!"%?%V$rJ]B8$7$^$9!#(B
> $B2~9TJ8;z$@$1$O?7$7$/C18lJ,$1$r9T$$$^$9!#(B
> $B$?$@$7!"$I$N$h$&$J>l9g$G$b:G8e$N2~9TJ8;z$@$1$O?7$7$$C18l$K$J$j$^$;$s!#(B
> $B$G$9$+$i!"(B1 $B9T$^$k$^$k=PNO$9$k$h$&$J%3%^%s%I$G$b!"%3%^%s%ICV49$r(B
> $BMQ$$$k$HC18l$N0lIt$@$1$r@8@.$9$k$3$H$,$G$-$^$9!#(B
> 
> # $B!V(B2 $B=E0zMQId!W$O$d$C$Q$j!"!VFs=E0zMQId!W$KLa$7$?J}$,$$$$$G$9$M!)(B

$BF146(B
M-x query-replace 2 $B=E0zMQId(B -> $BFs=E0zMQId(B

> (5)
> $B1Q8l86J8!'(BLine 1353 - 1354
> .PP
> The character `~' at the beginning of a filename refers to home directories.
> Standing alone, i.e., `~', it expands to the invoker's home directory as
> reflected in the value of the \fBhome\fR shell variable.  When followed by a
> name consisting of letters, digits and `\-' characters the shell searches for a
> user with that name and substitutes their home directory; thus `~ken' might
> expand to `/usr/ken' and `~ken/chmach' to `/usr/ken/chmach'.  If the character
> `~' is followed by a character other than a letter or `/' or appears elsewhere
> than at the beginning of a word, it is left undisturbed.
> A command like `setenv MANPATH /usr/man:/usr/local/man:~/lib/man' does not,
> therefore, do home directory substitution as one might hope.
> .PP
> 
> $BOBLu(B (rev1.5)$B!'(BLine 1520 - 1534
> .\" kageyama: as reflected in... $B$N$H$3$m$r$b$&>/$7Lu$7$F$_$^$7$?!#(B

$B0J2<$NLu$G$$$$$H;W$$$^$9!#(B
$B$3$N%3%a%s%H$O<h$C$F$7$^$C$F9=$o$J$$!#(B

> $B%U%!%$%kL>@hF,$NJ8;z(B `~' $B$O!"%[!<%`%G%#%l%/%H%j$r;X$7$^$9!#C1FH$G(B
> $BMQ$$$i$l$?>l9g!"$D$^$j(B `~' $B$@$1$N>l9g!"%7%'%kJQ?t(B \fBhome\fR $B$NCM$K(B
> $BH?1G$5$l$F$$$k$h$&$K!"8F$S=P$7$?%f!<%6$N(B
> $B%[!<%`%G%#%l%/%H%j$KE83+$5$l$^$9!#(B`~' $B$ND>8e$K1QJ8;z!"(B
> $B?t;z!"$^$?$OJ8;z(B `\-' $B$G9=@.$5$l$kL>A0$,B3$/>l9g!"%7%'%k$O$=$N(B
> $BL>A0$r;}$D%f!<%6$r8!:w$7!"$=$N%f!<%6$N%[!<%`%G%#%l%/%H%j$KE83+$7$^$9!#(B
> $B$G$9$+$i!"(B`~ken' $B$O$?$H$($P(B `/usr/ken' $B$KE83+$5$l$^$9!#(B
> $B$^$?!"(B`~ken/chmach'$B$O!"$?$H$($P(B `/usr/ken/chmach' $B$KE83+$5$l$^$9!#(B
> $BJ8;z(B `~' $B$N8e$m$K1QJ8;z$G$b$J$/(B `/' $B$G$b$J$$J8;z$,B3$$$?>l9g!"(B
> $B$b$7$/$O!"J8;z(B `~' $B$,C18l$N@hF,0J30$K8=$l$?>l9g!"JQ99$5$l$:$K(B
> $B$=$N$^$^EO$5$l$^$9!#$G$9$+$i!"(B
> `setenv MANPATH /usr/man:/usr/local/man:~/lib/man' $B$N$h$&$J%3%^%s%I(B
> $B$G$O!"4|BTDL$j$N%[!<%`%G%#%l%/%H%jCV49$,5/$3$j$^$;$s!#(B
> 
> (6)
> $B1Q8l86J8!'(BLine 1365 - 1371
> It is an error for a glob-pattern containing `*', `?', `[' or `~', with or
> without `^', not to match any files.  However, only one pattern in a list of
> glob-patterns must match a file (so that, e.g., `rm *.a *.c *.o' would fail
> only if there were no files in the current directory ending in `.a', `.c', or
> `.o'), and if the \fBnonomatch\fR shell variable is set a pattern (or list
> of patterns) which matches nothing is left unchanged rather than causing
> an error.
> 
> $BOBLu(B (rev1.5)$B!'(BLine 1536 - 1544
> `^' $B$NM-L5$K4X$o$i$:!"(B `*', `?', `[', `~' $B$r4^$`%0%m%V%Q%?!<%s$,$I$N(B
> $B%U%!%$%k$K$b%^%C%A$7$J$$>l9g$O%(%i!<$G$9!#$7$+$7!"%0%m%V%Q%?!<%s$N(B
> $BNs$NCf$G$?$@(B 1 $B$D$@$1$,%U%!%$%k(B 1 $B$D$K%^%C%A$7$J$1$l$P$J$j$^$;$s(B
> .\"kuma $B$I$&$$$&0UL#(B?
> ($B$?$H$($P!"(B`rm *.a *.c *.o' $B$O!"(B`.a', `.c', `.o' $B$G=*$k%U%!%$%k$,(B
> $B%+%l%s%H%G%#%l%/%H%j$K$J$$>l9g$K8B$j<:GT$7$^$9(B)$B!#$^$?!"%7%'%kJQ?t(B
> \fBnonomatch\fR $B$,@_Dj$5$l$F$$$k>l9g!"$I$l$K$b%^%C%A$7$J$$(B
> $B%Q%?!<%s(B ($B$"$k$$$O%Q%?!<%s$NNs(B) $B$O%(%i!<$K$J$i$:$KL5JQ49$N$^$^(B
> $B;D$5$l$^$9!#(B
> 
> # $B$o$+$j$^$;$s(B(^_^?)

$B$3$l$OCfLn$5$s$,E,@Z$JLu$rDs<($7$F2<$5$C$F$$$?$h$&$K5-21$7$F$$$^$9!#(B
$B$=$3$+$iD:$-$^$7$g$&!#(B

> (7)
> $B1Q8l86J8!'(BLine 1485
> .SS Input/output
> 
> $BOBLu(B (rev1.5)$B!'(BLine 1680 - 1682
> .\"
> .\"
> .SS $BF~=PNO(B
> 
> # $B$3$3$N%3%a%s%H$OITMW$K$J$j$^$7$?!#(B

$B$J$i$P!":o=|$9$l$P$$$$$C$F$3$H$M!#(B

> (8)
> $B1Q8l86J8!'(BLine 2127
> .\" .B macro can't take too many words, so I used \fB in the previous tags
> 
> $BOBLu(B (rev1.5)$B!'(BLine 2439 - 2440
> .\" .B $B%^%/%m$OB?$/$NC18l$r07$($J$$$N$G!"$3$3$^$G$NItJ,$G(B \fB $B$r(B
> .\" $B;H$C$F$$$^$9!#(B
> 
> # tags $B$NLu!)(B

$B86J8$N%3%a%s%H$J$N$G!"E,Ev$G$b$$$$$G$7$g$&!#(B
$B$G!"(Btags $B$rHt$P$7$FK]Lu$7$F$b$$$$$G$7$g$&!#(B

> (9)
> $B1Q8l86J8!'(BLine 1411 - 1412
> Now for some examples.  Some commands take only directories as arguments,
> so there's no point completing plain files.
> 
> $BOBLu(B (rev1.5)$B!'(BLine 2744 - 2747
> $B$G$O$$$/$D$+Nc$r<($7$^$9!#(B
> $B%G%#%l%/%H%j$N$_$r0z?t$K$H$k$h$&$J%3%^%s%I$b$"$k$N$G!"(B
> .\"nakano there's no point?
> $BIaDL$N%U%!%$%k$rJd40$9$k$h$&$JNc$O=P$7$^$;$s!#(B

$B$A$g$C$HJ,$+$i$s$,!"$H$j$"$($:$O$3$NLu$G$h$5$=$&$J5$$,$9$k!#(B
$BB>$N?M8!F$4j$$$^$9!#(B

> (10)
> $B1Q8l86J8!'(BLine 2414 - 2417
> > complete cd 'p/1/d/'
> .PP
> completes only the first word following `cd' (`p/1') with a directory.
> \fBp\fR-type completion can also be used to narrow down command completion:
> 
> $BOBLu(B (rev1.5)$B!'(BLine 2749 - 2754
> > complete cd 'p/1/d/'
> .PP
> `cd' $B$KB3$/:G=i$NC18l$N$_(B (`p/1') $B$r%G%#%l%/%H%j$GJd40$7$^$9!#(B
> $B%3%^%s%IJd40$r9J$j$3$`$?$a$K(B \fBp\fR-$B7A<0$NJd40$r(B
> .\"nakano ($B$$$C$7$g$K(B?)
> $BMQ$$$k$3$H$b$G$-$^$9!#(B

$B!V$$$C$7$g$K(B?$B!W$O(B also $B$r<u$1$F$N$3$H$G$9$h$M!#(B
$B!V$$$C$7$g$K!W$O$J$/$F$b$$$$$s$8$c$J$$$+$J!#(B
$B$D$^$j86J8DL$j$G9=$o$J$$$H!#(B

$B$3$NJ8$N:G8e$,%3%m%s$G=*$o$C$F$$$k$H8@$&$3$H$O!"$3$NJ8$O<!$NNc$N@bL@$+(B
$B$b$M!#$H$9$k$H!"!V(B($B0z?t$@$1$G$J$/(B)$B%3%^%s%IJd40$K$b(B p-$B7A<0$NJd40$rMQ$$$k(B
$B$3$H$,$G$-$^$9!W$N(B also $B$8$c$J$$$+!)(B
$B86J8$N$3$ND>8e$K$=$&$$$&46$8$NNc$,:\$C$F$J$$!)(B

> (11)
> $B1Q8l86J8!'(BLine 2500 - 2508
> > complete dbx 'p/2/(core)/' 'p/*/c/'
> .PP
> completes the second argument to `dbx' with the word `core' and all other
> arguments with commands.  Note that the positional completion is specified
> before the next-word completion.
> Because completions are evaluated from left to right, if
> the next-word completion were specified first it would always match
> and the positional completion would never be executed.  This is a
> common mistake when defining a completion.
> 
> $BOBLu(B (rev1.5)$B!'(BLine 2844 - 2856
> > complete dbx 'p/2/(core)/' 'p/*/c/'
> .PP
> $B$3$l$O(B `dbx' $B$NBh(B 2 $B0z?t$r(B `core' $B$H$$$&C18l$GJd40$7!"(B
> $BB>$N$9$Y$F$N0z?t$r%3%^%s%I$GJd40$7$^$9!#(B
> $B0LCV;XDj%?%$%W$NJd40$O!"C`<!Jd40$h$jA0$K;XDj$9$k$3$H$KCm0U$7$F$/$@$5$$!#(B
> .\"nakano positional completion & next-word completion $B$NLu8l$O!"$H$j$"$($:(B
> .\"WORD:        positional completion   $B0LCV;XDjJd40(B
> .\"WORD:        next-word completion    $BC`<!Jd40(B
> .\"nakano $B$H$7$F$_$^$7$?!#(B

$B$$$$$N$G$O$J$$$G$7$g$&$+!#(B

> (12)
> $B1Q8l86J8!'(BLine 2542 - 2546
> > complete finger 'c/*@/$hostnames/' 'p/1/u/@'
> .PP
> completes arguments to `finger' from the list of users, appends an `@',
> and then completes after the `@' from the `hostnames' variable.  Note
> again the order in which the completions are specified.
> 
> $BOBLu(B (rev1.5)$B!'(BLine 2896 - 2901
> > complete finger 'c/*@/$hostnames/' 'p/1/u/@'
> .PP
> $B$3$l$O(B `finger' $B$N0z?t$r!"$^$:%f!<%6$N%j%9%H$+$iJd40$7!"(B
> $B$=$l$K(B `@' $B$rDI2C$7!"$5$i$K(B `@' $B$N8e$r(B `hostnames' $BJQ?t(B
> .\"nakano $B%7%'%kJQ?t!)(B
> $B$N%j%9%H$+$iJd40$7$^$9!#$3$3$G$bJd40;XDj$N=g=x$KCm0U$7$F$/$@$5$$!#(B
> 
> # hostnames ???

hostnames $BJQ?t(B -> $BJQ?t(B hostnames
$B$H$9$k!#(B
$B$3$NLu$G0UL#$ODL$C$F$$$k$H;W$$$^$9!#=gHVE*$K!V(Bfoo $BJQ?t!W$h$j!VJQ?t(B foo$B!W(B
$B$KE}0l$7$h$&$H$7$F$$$k$N$GCV$-49$($k$@$1$G$9!#(B

$B!VJQ?t!W$N$^$^$G(BOK$B!#4:$($F!V%7%'%kJQ?t!W$H$^$GLu$9I,MW$O$J$$$G$7$g$&!#(B

> (13)
> $B1Q8l86J8!'(BLine 2579 - 2583
> Remember that programmed completions are ignored if the word being completed
> is a tilde substitution (beginning with `~') or a variable (beginning with `$').
> \fIcomplete\fR is an experimental feature, and the syntax may change
> in future versions of the shell.
> See also the \fIuncomplete\fR builtin command.
> 
> $BOBLu(B (rev1.5)$B!'(BLine 2934 - 2940
> $BJd40;XDj$O!"BP>]$H$J$kC18l$,%A%k%@CV49(B (`~' $B$G$O$8$^$k(B) $B$d(B
> $BJQ?t(B (`$' $B$G$O$8$^$k(B) $B$N>l9g$OL5;k$5$l$k$3$H$KN10U$7$F$/$@$5$$!#(B
> .\"WORD:        programmed completion   $BJd40;XDj(B
> .\"WORD:        tilde substitution      $B%A%k%@BeF~(B ($B$&!<$s(B...)
> \fIcomplete\fR $B$O<B83E*$J5!G=$G$"$j!"(B
> $BJ8K!$O$3$N%7%'%k$N>-Mh$N%P!<%8%g%s$G$OJQ99$5$l$k$+$b$7$l$^$;$s!#(B
> $BAH$_9~$_%3%^%s%I(B \fIuncomplete\fR $B$N@bL@$b8+$F$/$@$5$$!#(B

tilde substitution $B$O!V%A%k%@CV49!W$K$9$Y$-!"(B
M-x query-replace $B%A%k%@BeF~(B -> $B%A%k%@CV49(B

> (14)
> $B1Q8l86J8!'(BLine 2611 - 2624
> With \fB\-S\fR, the second form saves the directory stack to \fIfilename\fR
> as a series of \fIcd\fR and \fIpushd\fR commands.
> With \fB\-L\fR, the shell sources \fIfilename\fR, which is presumably
> a directory stack file saved by the \fB\-S\fR option or the \fBsavedirs\fR
> mechanism.
> In either case, \fBdirsfile\fR is used if \fIfilename\fR is not given and
> \fI~/.cshdirs\fR is used if \fBdirsfile\fR is unset.
> .PP
> Note that login shells do the equivalent of `dirs \-L' on startup
> and, if \fBsavedirs\fR is set, `dirs \-S' before exiting.
> Because only \fI~/.tcshrc\fR is normally sourced before \fI~/.cshdirs\fR,
> \fBdirsfile\fR should be set in \fI~/.tcshrc\fR rather than \fI~/.login\fR.
> .PP
> The last form clears the directory stack.
> 
> $BOBLu(B (rev1.5)$B!'(BLine 2971 - 2991
> \fB\-S\fR $B$r;XDj$7$?(B 2 $BHVL\$N7A<0$G$O!"(B
> $B%G%#%l%/%H%j%9%?%C%/$r(B
> \fIcd\fR $B$H(B \fIpushd\fR $B$+$i$J$k%3%^%s%INs$H$7$F(B
> \fIfilename\fR $B$KJ]B8$7$^$9!#(B
> \fB\-L\fR $B$r;XDj$9$k$H!"$3$N%7%'%k$O(B \fIfilename\fR $B$r(B source $B$7$^$9!#(B
> .\"nakano $BF0;l$N(B source $B$O(B...

$B$3$NJ8$NF0;l(B source $B$O!";R%W%m%;%9$r5/F0$7$F%9%/%j%W%H$r<B9T$9$k$N$G$O(B
$B$J$/!"<+J,<+?H$G%9%/%j%W%H$r<B9T$9$k$3$H$rI=$7$^$9!#%9%/%j%W%HFbIt$GJQ(B
$B?tBeF~$7$?7k2L$r<h$j9~$_$?$$;~$J$I$K;H$$$^$9!#(BBourne shell $B$@$H(B $B%3%^%s(B
$B%I(B '.' $B$,$=$l$K3:Ev$7$^$9!#(B
($BNc(B: /etc/rc $B$N@hF,$G(B /etc/defaults/rc.conf $B$r(B source $B$9$k(B)

$B$d$C$Q$j!"$3$&Lu$9$7$+$J$$$G$7$g$&!#!V%=!<%9$7$^$9!W$bJQ$@$7!#(B
$B$A$e$&$3$H$G!"$3$N%3%a%s%H$r<h$C$F=*$o$j!#(B

> $B$3$N%U%!%$%k$O!"0JA0$K(B \fB\-S\fR $B%*%W%7%g%s$d(B
> \fBsavedirs\fR $B5!9=$GJ]B8$5$l$?%G%#%l%/%H%j%9%?%C%/$G$9!#(B
> $B$$$:$l$N>l9g$G$b!"(B \fIfilename\fR $B$,M?$($i$l$J$1$l$P(B
> \fBdirsfile\fR $B$rMQ$$$^$9!#(B
> \fBdirsfile\fR $B$b;XDj$5$l$F$$$J$1$l$P(B \fI~/.cshdirs\fR $B$rMQ$$$^$9!#(B
> .PP
> $B%m%0%$%s%7%'%k$O(B `dirs \-L' $B$HF1MM$N$3$H$r5/F0;~$K9T$C$F$*$j!"(B
> $B$^$?(B \fBsavedirs\fR $B$,@_Dj$5$l$F$$$l$P=*N;A0$K(B
> `dirs \-S' $B$HF1MM$N$3$H$r9T$$$^$9!#(B
> $BDL>o(B \fI~/.tcshrc\fR $B$@$1$,(B \fI~/.cshdirs\fR $B$NA0$K(B source $B$5$l$k$N$G!"(B
> \fBdirsfile\fR $B$O(B \fI~/.login\fR $B$G$O$J$/(B
> \fI~/.tcshrc\fR $B$G@_Dj$9$Y$-$G$9!#(B
> .\"nakano $B0UL#<h$l$F$$$^$;$s!#(B

Startup and shutdown $B$N$H$3$m$K$O!"(B
  .tcshrc $B$,$"$l$P$=$l$rFI$`!#(B
  $B$J$1$l$P!"(B.cshrc, .history, .login, .cshdirs $B$rFI$`!#(B
$B$H$"$k$h$&$K$bFI$a$k!#$=$l$r8+$D$D$3$NItJ,$N86J8$r8+$k$H!"(B
  .tcshrc $B$,$"$k$H$3$l$@$1FI$s$G(B .login $BFI$^$J$$$N$G!"(B
  .login $B$KF~$l$k$s$8$c$J$/(B
  $B$F!"(B.tcshrc $B$K(B dirsfile $B$N@_Dj$rF~$l$H$+$s$H$"$+$s$h(B
$B$H8@$C$F$k$s$8$c$J$$$+$J!#(B

.tcshrc $B$,$"$k$H(B .login $B$rFI$_9~$^$J$/$J$k$+$I$&$+!"<B83$7$F(B
$B3NG'$7$F$_$F$/$l$^$;$s$+!#(B

> (15)
> $B1Q8l86J8!'(BLine 2707 - 2729
> .B foreach \fIname \fB(\fIwordlist\fB)
> .br
> \&...
> .PD 0
> .TP 8
> .B end
> Successively sets the variable \fIname\fR to each member of
> \fIwordlist\fR and executes the sequence of commands between this command
> and the matching \fIend\fR.  (Both \fIforeach\fR and \fIend\fR
> must appear alone on separate lines.)  The builtin command
> \fIcontinue\fR may be used to continue the loop prematurely and
> the builtin command \fIbreak\fR to terminate it prematurely.
> When this command is read from the terminal, the loop is read once
> prompting with `foreach? ' (or \fBprompt2\fR) before any statements in
> the loop are executed.  If you make a mistake typing in a
> loop at the terminal you can rub it out.
> .PD
> .TP 8
> .B getspath \fR(+)
> Prints the system execution path.  (TCF only)
> .TP 8
> .B getxvers \fR(+)
> Prints the experimental version prefix.  (TCF only)
> 
> $BOBLu(B (rev1.5)$B!'(BLine 3078 - 3105
> .B foreach \fIname \fB(\fIwordlist\fB)
> .br
> \&...
> .PD 0
> .TP 8
> .B end
> \fIwordlist\fR $B$N%a%s%P!<$r(B \fIname\fR $B$K=g!9$KBeF~$7!"(B
> $B$3$l$HBP1~$9$k(B \fIend\fR $B$K64$^$l$?HO0O$N(B
> $B%3%^%s%I%7!<%1%s%9$r<B9T$7$^$9!#(B
> (\fIforeach\fR $B$H(B \fIend\fR $B$O(B 1 $B9T$KC1FH$G8=$l$J$1$l$P$J$j$^$;$s!#(B)
> $BAH$_9~$_%3%^%s%I(B \fIcontinue\fR $B$rMQ$$$k$H(B
> $B%k!<%W$rESCf$G7QB3$9$k$3$H$,$G$-!"(B 
> $BAH$_9~$_%3%^%s%I(B \fIbreak\fR $B$rMQ$$$k$H(B
> $B%k!<%W$rESCf$G=*N;$5$;$k$3$H$,$G$-$^$9!#(B
> $B$3$N%3%^%s%I$,C<Kv$+$iFI$_9~$^$l$k$H!"(B
> $B0lEY%k!<%W$r(B `foreach?' $B%W%m%s%W%H(B ($B$"$k$$$O(B \fBprompt2\fR)
> $B$GFI$_9~$_!"A4BN$rFI$_=*$($F$+$i%k!<%W$N3FJ8$r<B9T$7$^$9!#(B
> $BC<Kv$+$i$NF~NO;~$K%k!<%W$NESCf$G%?%$%W%_%9$r$7$?>l9g$O(B
> $B=$@5$G$-$^$9!#(B
> .\"nakano rub out $B$NLu8l$,$A$g$C$H%T%s$HMh$^$;$s!#(B

$B$3$NLu$G$$$$$H;W$$$^$9!#(B

$B@N$N%F%l%?%$%W$K$O(B RUB OUT $B$H$$$&%-!<$,$"$j$^$7$?!#%+!<%I$d%F!<%W$N3:(B
$BEvJ8;zItJ,$KA4It7j$r6u$1$k%-!<$G$9!#(BDELETE $B$HF1$8$b$N$H;W$$$M$'!#(B

> .PD
> .TP 8
> .B getspath \fR(+)
> $B%7%9%F%`$N<B9T%Q%9$rI=<($7$^$9!#(B (TCF $B$N$_(B)
> .TP 8
> .B getxvers \fR(+)
> $B<B83E*%P!<%8%g%s$N%W%l%U%#%C%/%9$rI=<($7$^$9!#(B (TCF $B$N$_(B)
> .\"nakano ....

$B$3$l$G$$$$$G$7$g$&!#(B

> 
> (16)
> $B1Q8l86J8!'(BLine 2750 -2751
> On machines without \fIvfork\fR(2), prints only the number and size of
> hash buckets.
> 
> $BOBLu(B (rev1.5)$B!'(BLine 1469
> \fIvfork\fR(2) $B$N$J$$%^%7%s$G$O!"(B
> $BC1$K%O%C%7%e%P%1%D$N%5%$%:$rI=<($7$^$9!#(B
> 
> # "hash buckets" $B!V%O%C%7%e%P%1%D!W"*!V%O%C%7%e%P%1%C%H!W(B

$B$&!<$s!#$3$l$O!V%P%1%D!W$@$C$?$H;W$&!#(B
hash buckets $B$O$3$F$3$F$N%3%s%T%e!<%?%5%$%(%s%9=Q8l$N$O$:!#(B
$B$G!"!V%P%1%D!W$@$C$1!)!V%P%1%C$H!W$@$C$1!)(B

> (17)
> $B1Q8l86J8!'(BLine 2790 - 2796
> Note that login shells do the equivalent of `history \-L' on startup
> and, if \fBsavehist\fR is set, `history \-S' before exiting.
> Because only \fI~/.tcshrc\fR is normally sourced before \fI~/.history\fR,
> \fBhistfile\fR should be set in \fI~/.tcshrc\fR rather than \fI~/.login\fR.
> .PP
> If \fBhistlit\fR is set, the first and second forms print and save the literal
> (unexpanded) form of the history list.
> 
> $BOBLu(B (rev1.5)$B!'(BLine 3172 - 3182
> $B%m%0%$%s%7%'%k$O(B `history \-L' $B$HF1MM$N$3$H$r5/F0;~$K9T$C$F$*$j!"(B
> $B$^$?(B \fBsavehist\fR $B$,@_Dj$5$l$F$$$l$P=*N;A0$K(B
> `history \-S' $B$HF1MM$N$3$H$r9T$$$^$9!#(B
> $BDL>o(B \fI~/.tcshrc\fR $B$@$1$,(B \fI~/.history\fR $B$NA0$K(B source $B$5$l$k$N$G!"(B
> \fBhistfile\fR $B$O(B \fI~/.login\fR $B$G$O$J$/(B
> \fI~/.tcshrc\fR $B$G@_Dj$9$Y$-$G$9!#(B
> .\"nakano $B0UL#<h$l$F$$$^$;$s!#(B

dirsfile $B$N$H$3$m$HF1$8$+$J!#(B

$B$?$@!"=gHV$+$i$9$k$H(B .login $B$O(B .history $B$N$"$H$@$+$i!"(B.tcshrc $B$,$"$m$&(B
$B$,$J$+$m$&$,(B .login $B$G@_Dj$7$F$?$iCY2a$.$J$N$G$O$J$$$+$J$!!#(B
$B$&!<$s!"$3$386J8$,ITE,@Z$8$c$J$$$+$J!#(B
--
$B7'C+(B $BE5Bg(B
