From owner-man-jp-reviewer@jp.freebsd.org  Fri Nov  3 16:56:49 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id QAA34036;
	Fri, 3 Nov 2000 16:56:49 +0900 (JST)
	(envelope-from owner-man-jp-reviewer@jp.FreeBSD.org)
Received: from basil.veltec.co.jp (camomile.veltec.co.jp [211.2.223.5])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id QAA34029
	for <man-jp-reviewer@jp.freebsd.org>; Fri, 3 Nov 2000 16:56:36 +0900 (JST)
	(envelope-from yuko@veltec.co.jp)
Received: from lapis (lapis [192.168.0.14])
	by basil.veltec.co.jp (8.10.0.Beta6/3.7W07/04/00) with ESMTP
	id eA37uLk06125
	for <man-jp-reviewer@jp.freebsd.org>; Fri, 3 Nov 2000 16:56:21 +0900 (JST)
To: man-jp-reviewer@jp.freebsd.org
X-SMIME-fingerprint: A7:AE:D4:83:9D:5B:A5:F2:24:8F:F4:DC:87:3C:72:89
From: Yuko Sasaki <yuko@veltec.co.jp>
Message-Id: <200011031653.FHE24796.PZVL@veltec.co.jp>
X-Mailer: Winbiff [Version 2.31PL1]
Date: Fri, 3 Nov 2000 16:53:09 +0900
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-2022-jp
Reply-To: man-jp-reviewer@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: man-jp-reviewer 3041
Subject: [man-jp-reviewer 3041] tcsh.1 P31
Errors-To: owner-man-jp-reviewer@jp.freebsd.org
Sender: owner-man-jp-reviewer@jp.freebsd.org
X-Originator: yuko@veltec.co.jp

$B$J$s$+%"%d%7$2$@$1$I!"(BP31$B$G$9!#(B# $B$A$g$C$H<jEA$C$F$b$i$C$?$s$@$,(B...$B!#(B
$B$"$d$7$$$H$3$O!"(B
.\" jp-man: $B%3%a%s%H(B
$B$H$7$F$"$j$^$9!#(B

$B!VF~=PNO!W$N2U=j$,1QJ8$,BgBNF1$8$@$C$?$N$G!"(Bcsh.1$B$+$i%3%T!<$7$F$-$^$7$?!#(B
$B%3%T!<ItJ,$O!"%3%a%s%H$rIU$1$F$"$j$^$9!#(Bcsh.1$B$+$i%3%T!<$7$F$-$?ItJ,$G!"(B
$B#19T$@$1$o$+$i$J$$2U=j$,$"$C$?$N$G!"%3%a%s%H$G!"(Bcsh.1$B$H(Btcsh.1$B$N(B
$B1QJ8$r$D$1$F$"$j$^$9!#F|K\8lLu$O$=$N$^$^(Bcsh.1$B$N$b$C$F$-$F$"$j$^$9$,!"(B
$B$3$l$G9g$C$F$k$N$+J,$+$i$J$$$H$$$&$3$H$J$N$G%A%'%C%/$N?M$K$*G$$;!#(B

$B$"!"(Bsequence$B$O!"!VNs!W$b$7$/$O!V%3%^%s%INs!W$H$J$C$F$^$9!#(B

-------------------------$B$3$3$+$i(B---------------
.SS $B%3%^%s%I(B
.\" The next three sections describe how the shell executes commands and
.\" deals with their input and output.
$B<!$N(B3$B$D$N%;%/%7%g%s$G$O!"%7%'%k$,$I$N$h$&$K%3%^%s%I$r<B9T$7!"(B
$B$=$l$i$NF~=PNO$r$I$N$h$&$K07$&$+$r@bL@$7$^$9!#(B
.SS $BC1=c%3%^%s%I!"%Q%$%W%i%$%s!"%3%^%s%INs(B
.\" A simple command is a sequence of words, the first of which specifies the
.\" command to be executed.  A series of simple commands joined by `|' characters
.\" forms a pipeline.  The output of each command in a pipeline is connected to the
.\" input of the next.
$BC1=c%3%^%s%I$O!"C18l$NNs$G$"$j!"(B
$B$=$N:G=i$NC18l$,<B9T$5$l$k%3%^%s%I$G$9!#(B
`|' $BJ8;z$K$h$C$F6h@Z$i$l$?0lO"$NC1=c%3%^%s%I$O(B
$B%Q%$%W%i%$%s$r7A@.$7$^$9!#(B
$B%Q%$%W%i%$%sFb$N$=$l$>$l$N%3%^%s%I$N=PNO$O<!$N%3%^%s%I$N(B
$BF~NO$K@\B3$5$l$^$9!#(B
.PP
.\" Simple commands and pipelines may be joined into sequences with `;', and will
.\" be executed sequentially.  Commands and pipelines can also be joined into
.\" sequences with `||' or `&&', indicating, as in the C language, that the second
.\" is to be executed only if the first fails or succeeds respectively.
$BC1=c%3%^%s%I$H%Q%$%W%i%$%s$O(B `;' $BJ8;z$r;H$C$F(B
$B%3%^%s%INs$KAH$_F~$l$k$3$H$,$G$-!"Ns$N=g$K<B9T$5$l$^$9!#(B
$B%3%^%s%I$H%Q%$%W%i%$%s$O(B `||' $B$d(B `&&' $B$G%3%^%s%INs$K(B
$BAH$_9~$`$3$H$b$G$-!"(BC $B8@8l$G07$o$l$k$N$HF1MM$K!"(B
.\" jp-man: $BMW3NG'(B
.\" $B86J8$HI=5-$N0c$$(B(`||')$B!"(B(`&&')
1 $BHVL\$,<:GT$7$?>l9g(B (`||')$B!"@.8y$7$?>l9g(B (`&&') $B$K(B
$B$@$1(B2$BHVL\$,<B9T$5$l$^$9!#(B
.PP
.\" A simple command, pipeline or sequence may be placed in parentheses, `()',
.\" to form a simple command, which may in turn be a component of a pipeline or
.\" sequence.  A command, pipeline or sequence can be executed
.\" without waiting for it to terminate by following it with an `&'.
$BC1=c%3%^%s%I!"%Q%$%W%i%$%s!"$^$?$O%3%^%s%INs$O!"(B
`()' $B$r;H$C$FC1=c%3%^%s%I$r7A@.$9$k$3$H$,$G$-!"(B
$B%Q%$%W%i%$%s$dNs$N0lIt$H$7$F;HMQ$G$-$^$9!#(B
$B%3%^%s%I!"%Q%$%W%i%$%s!"$^$?$O%3%^%s%INs$NF,$K(B
`&' $B$r$D$1$F<B9T$9$k$H!"=*N;$rBT$?$:$K<B9T$G$-$^$9!#(B
.SS "$BAH$_9~$_%3%^%s%I!"HsAH$_9~$_%3%^%s%I$N<B9T(B"
.\" Builtin commands are executed within the shell.  
$BAH$_9~$_%3%^%s%I$O!"%7%'%k$NCf$G<B9T$5$l$^$9!#(B
.\" If any component of a pipeline except the last is
.\" a builtin command, the pipeline is executed in a subshell.
$B:G8e0J30$N%Q%$%W%i%$%s$N9=@.MWAG$,AH$_9~$_%3%^%s%I$N$H$-!"(B
$B%Q%$%W%i%$%s$O!"%5%V%7%'%kFb$G<B9T$5$l$^$9!#(B
.PP
.\" Parenthesized commands are always executed in a subshell.
$B3g8L$G3g$i$l$?%3%^%s%I$O!">o$K%5%V%7%'%kFb$G<B9T$5$l$^$9!#(B
.IP "" 4
(cd; pwd); pwd
.PP
.\" thus prints the \fBhome\fR directory, leaving you where you were
.\" (printing this after the home directory), while
$B$3$l$O!"8=:_$N%G%#%l%/%H%j$r0\F0$9$k$3$H$J$/$/(B\fB$B%[!<%`(B\fR
$B%G%#%l%/%H%j$rI=<((B ($B$=$N8e$K8=:_$N%G%#%l%/%H%j$rI=<((B) $B$7!"(B
$B$=$N0lJ}!"(B
.IP "" 4
cd; pwd
.PP
\." leaves you in the \fBhome\fR directory.  Parenthesized commands are most often
\." used to prevent \fIcd\fR from affecting the current shell.
$B$3$N>l9g$O(B\fB$B%[!<%`(B\fR$B%G%#%l%/%H%j$K0\F0$7$^$9!#(B
$B3g8L$G3g$i$l$?%3%^%s%I$O!"$?$$$F$$(B \fIcd\fR $B$,8=:_$N%7%'%k$K(B
$B1F6A$9$k$N$rKI$0$?$a$K;HMQ$7$^$9!#(B
.PP
.\" When a command to be executed is found not to be a builtin command the shell
.\" attempts to execute the command via \fIexecve\fR(2).  Each word in the variable
.\" \fBpath\fR names a directory in which the shell will look for the
.\" command.  If it is given neither a \fB\-c\fR nor a \fB\-t\fR option, the shell
.\" hashes the names in these directories into an internal table so that it will
.\" try an \fIexecve\fR(2) in only a directory where there is a possibility that the
.\" command resides there.  This greatly speeds command location when a large
.\" number of directories are present in the search path.  If this mechanism has
.\" been turned off (via \fIunhash\fR), if the shell was given a \fB\-c\fR or
.\" \fB\-t\fR argument or in any case for each directory component of \fBpath\fR
.\" which does not begin with a `/', the shell concatenates the current working
.\" directory with the given command name to form a path name of a file which it
.\" then attempts to execute.
$B<B9T$9$k%3%^%s%I$,AH$_9~$_%3%^%s%I$G$J$$$3$H$,H=L@$9$k$H!"(B
$B%7%'%k$O$=$N%3%^%s%I$r(B  \fIexecve\fR(2) $B$rDL$8$F<B9T$7$h$&(B
$B$H$7$^$9!#(B
$BJQ?t(B\fB$B%Q%9(B\fR$BFb$N3FC18l$O!"%7%'%k$,%3%^%s%I$r8!:w$9$k%G%#%l%/%H%j(B
$B$r;XDj$7$^$9!#(B
\fB\-c\fR$B!"(B\fB\-t\fR $B%*%W%7%g%s$N$$$:$l$b;XDj$5$l$F$$$J$$>l9g!"(B
$B$3$l$i$N%G%#%l%/%H%jFb$NL>A0$rFbIt%F!<%V%k$G%O%C%7%e$7!"(B
$B$=$N%3%^%s%I$,B8:_$9$k2DG=@-$N$"$k%G%#%l%/%H%j$@$1$G(B
\fIexecve\fR(2) $B$N<B9T$r;n$_$^$9!#(B
$B$3$N$3$H$O!"8!:w%Q%9Fb$N%G%#%l%/%H%j$N?t$,B?$$>l9g$K!"(B
$B%3%^%s%I$N0LCV3NDj$rBg$$$K9bB.2=$7$^$9!#(B
$B$3$N5!9=$,(B (\fIunhash\fR $B$K$h$C$F(B) $B%*%U$K$5$l!"(B
$B%7%'%k$K(B \fB\-c\fR $B$^$?$O(B \fB\-t\fR $B$N%*%W%7%g%s$,M?$($i$l$k$+!"(B
$B$=$l$>$l$N(B\fB$B%Q%9(B\fR$B$N%G%#%l%/%H%j9=@.MWAG$N$$$:$l$+(B
$B$,(B `/' $B$G;O$^$C$F$$$J$$>l9g!"%7%'%k$O8=:_$N:n6H%G%#%l%/%H%j(B
$B$HM?$($i$l$?%3%^%s%I$r<B9T$9$k%U%!%$%k$N%Q%9L>$r7A@.(B
$B$7$^$9!#(B
.PP
.\" If the file has execute permissions but is not an executable to the system
.\" (i.e., it is neither an executable binary nor a script that specifies its
.\" interpreter), then it is assumed to be a file containing shell commands and
.\" a new shell is spawned to read it.  The \fIshell\fR special alias may be set
.\" to specify an interpreter other than the shell itself.
$B%U%!%$%k$K<B9T5v2D$G$"$C$F%7%9%F%`$,<B9T2DG=$G$O$J$$>l9g!"(B
($BNc(B : $B<B9T2DG=%P%$%J%j!"%$%s%?%W%j%s%?$r;XDj$7$?%9%/%j%W%H(B
$B$G$O$J$$$H$-(B)$B!"$=$l$r%7%'%k(B $B%3%^%s%I$r4^$`%U%!%$%k$G$"$k(B
$B$H$_$J$7!"?7$7$$%7%'%k$r5/F0$7$F$=$N%U%!%$%k$rFI$_9~$_$^$9!#(B
\fI$B%7%'%k(B\fR$B$NFC<l$J%(%$%j%"%9$G!"%7%'%k<+BN$G$O$J$/%$%s%?%W%j%?$r(B
$B;XDj$9$k$h$&$K@_Dj$9$k$3$H$b$G$-$^$9!#(B
.PP
.\" On systems which do not understand the `#!' script interpreter convention
.\" the shell may be compiled to emulate it; see the \fBversion\fR shell
.\" variable\fR.  If so, the shell checks the first line of the file to
.\" see if it is of the form `#!\fIinterpreter\fR \fIarg\fR ...'.  If it is,
.\" the shell starts \fIinterpreter\fR with the given \fIarg\fRs and feeds the
.\" file to it on standard input.
$B47=,E*$J!F(B#!' $B%9%/%j%W%H%$%s%?%W%j%?$rM}2r$7$J$$%7%9%F%`>e$G!"(B
$B%7%'%k$O%(%_%e%l!<%H$7!"%3%s%Q%$%k$7$^$9(B ; $B%7%'%kJQ?t(B\fR
\fB$B%P!<%8%g%s(B\fR$B$r;2>H!#(B
$B$=$N>l9g!"%7%'%k$,%U%!%$%k$N:G=i$N9T$r%A%'%C%/$7!"$=$l$,(B
`#!\fIinterpreter\fR \fIarg\fR ...' $B$N7A<0$G$"$k$+$I$&$+$r(B
$B3NG'$7$^$9!#(B
$B$3$N7A<0$G$"$l$P!"%7%'%k$OM?$($i$l$?(B\fI$B0z?t(B\fR$B$H$H$b$K(B
\fI$B%$%s%?%W%j%?(B\fR$B$r5/F0$7$F!"$=$N%U%!%$%k$rI8=`F~NO$K6!5k$7$^$9!#(B
.\"
.\" Copy from csh.1---- start
.\"
.SS $BF~=PNO(B
$B%3%^%s%I$NI8=`F~=PNO$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$$k>l9g!"%U%!%$%k$,B8:_$7$J$$(B
$B$+J8;z7?FC<l%U%!%$%k(B ($BC<Kv$d(B `/dev/null' $B$N$h$&$J(B) $B$G$J$1$l$P(B
$B%(%i!<$K$J$j$^$9!#$3$l$O!"$9$G$KB8:_$9$k%U%!%$%k$r;W$$$,$1$:(B
$B:o=|$7$F$7$^$&$3$H$rKI;_$7$^$9!#(B`!' $B$rMQ$$$?7A<0$r;H$&$H!"(B
$B$3$N8!::$rM^@)$9$k$3$H$,$G$-$^$9!#(B
.PP
.\" jp-man: csh.1 -> tcsh.1
.\" standard error($BI8=`%(%i!<(B) -> diagnostic($B?GCG%a%C%;!<%8(B)
`&' $B$rMQ$$$?7A<0$G$O!"I8=`=PNO$H$H$b$K?GCG%a%C%;!<%8(B
$B=PNO$b%U%!%$%k$X%j%@%$%l%/%H$5$l$^$9!#(B \fIname\fR$B$O!"(B `<' $B$N(B
$BF~NO%U%!%$%kL>$N>l9g$HF1MM$NE83+$r<u$1$^$9!#(B
.PD 0
.RE
.PP
>> \fIname
.br
>>& \fIname
.br
>>! \fIname
.TP 8
>>&! \fIname
.\" Use file name as the standard output;
`>' $B$HF1MM$K!"%U%!%$%k(B \fIname\fR $B$rI8=`=PNO$H$7$FMQ$$$^$9!#(B
$B$?$@$7!"%3%^%s%I$N=PNO$O%U%!%$%k$XDI2C$5$l$^$9!#(B
$BJQ?t(B \fBnoclobber\fR $B$,%;%C%H$5$l$F$$$k>l9g!"%U%!%$%k$,(B
\fI$BB8:_$7$J$1$l$P(B\fR$B%(%i!<$H$J$j$^$9(B (`!' $B$rMQ$$$k$3$H$G!"(B
$B$3$N8!::$rM^@)$9$k$3$H$,$G$-$^$9(B)$B!#(B
.\" Otherwise similar to `>'.
.PD
.PP
$B%3%^%s%I$O!"%7%'%k$,5/F0$5$l$?$H$-$N4D6-$r!"F~=PNO%j%@%$%l%/%H$H(B
$B%Q%$%W%i%$%s$K$h$C$FJQ99$7$?$b$N$N$J$+$G<B9T$5$l$^$9!#(B
$B0JA0$N$$$/$D$+$N%7%'%k$H$O0[$J$j!"%7%'%k%3%^%s%I%U%!%$%k$+$i5/F0(B
$B$5$l$?%3%^%s%I$O!"%G%U%)%k%H$G$OI8=`F~NO$K$h$C$F%7%'%k%3%^%s%I(B
$B%U%!%$%k<+BN$K%"%/%;%9$9$k$3$H$O$G$-$^$;$s!#(B
$B$+$o$j$K!"%7%'%k$,5/F0$7$?4D6-$NI8=`F~NO$r$=$N$^$^<u$17Q$$$G$$$^$9!#(B
`<<' $B5!9=$O%$%s%i%$%s%G!<%?$N$?$a$KMQ$$$k$Y$-$G$9!#(B
$B$3$N$h$&$K@)8B$9$k$3$H$K$h$j!"%7%'%k%3%^%s%I%9%/%j%W%H$r(B
$B%Q%$%W%i%$%s$N0lIt$H$7$FMQ$$$k$3$H$,$G$-$^$9!#(B
.\" csh.1 
.\" Note that the default standard input for a command
.\" run detached is not modified to be the empty file
.\" /dev/null; instead the standard input remains as
.\" the original standard input of the shell.
.\" tcsh.1 
.\" Note that the default standard input for a command
.\" run detached is \fInot\fR the empty file \fI/dev/null\fR,
.\" but the original standard input of the shell.
$B%P%C%/%0%i%&%s%I$G<B9T$5$l$F$$$k%3%^%s%I$NI8=`F~NO$b(B 
\fI/dev/null\fR $BEy$K(B\fI$B%j%@%$%l%/%H$5$l$k$3$H$O$J$/(B\fR$B!"(B
$B%7%'%k$NI8=`F~NO$r$=$N$^$^<u$17Q$$$G$$$^$9!#(B
$B$b$7I8=`F~NO$,C<Kv$G!"%3%^%s%I$,C<Kv$+$iFI$_9~$b$&$H$7$?>l9g!"(B
$B$=$N%W%m%;%9$O%V%m%C%/$5$l!"%7%'%k$O%f!<%6$K$=$N$3$H$rDLCN$7$^$9(B
($B;2>H(B: \fB$B%8%g%V(B\fR$B$N9`(B)$B!#(B
.PP
.\" jp-man: csh.1 -> tcsh.1
.\" standard error($BI8=`%(%i!<(B) -> diagnostic($B?GCG%a%C%;!<%8(B)
$B?GCG%a%C%;!<%8=PNO$b%Q%$%W$K%j%@%$%l%/%H$9$k$3$H$,(B
$B$G$-$^$9!#C1=c$K(B `|' $B$N$+$o$j$K(B `|&' $B$r;H$$$^$9!#(B
.\"
.\" Copy from csh.1----end
.\"
.PP
.\" The shell cannot presently redirect diagnostic output without also redirecting
.\" standard output, but `(\fIcommand\fR > \fIoutput-file\fR) >& \fIerror-file\fR'
.\" is often an acceptable workaround.  Either \fIoutput-file\fR or
.\" \fIerror-file\fR may be `/dev/tty' to send output to the terminal.
$B%7%'%k$O!"I8=`=PNO$N%j%@%$%l%/%H$J$7$G!"?GCG%a%C%;!<%8(B
$B=PNO$r%j%@%$%l%/%H$G$-$J$/$J$j$^$9!#(B
.\" jp-man$B!'(Bworkaroud -> $BM=Hw<jCJ(B
$B$=$N$?$a!"(B`(\fI$B%3%^%s%I(B\fR > \fI$B=PNO%U%!%$%k(B\fR) >&
\fI$B%(%i!<%U%!%$%k(B\fR' $B$O!"M=Hw<jCJ$H$5$l$F$^$9!#(B
\fI$B=PNO%U%!%$%k(B\fR$B!"(B\fI$B%(%i!<%U%!%$%k(B\fR$B$N$I$A$i$+$,!"(B
$BC<Kv$K=PNO$rAw$k$?$a$N(B `/dev/tty' $B$G$9!#(B
.SS $BFCD'(B
.\" Having described how the shell accepts, parses and executes
.\" command lines, we now turn to a variety of its useful features.
$B$3$3$G$O%7%'%k$,$I$N$h$&$K%3%^%s%I%i%$%s$r<u$1F~$l!"(B
$B2r<a$7!"<B9T$9$k$+$r@bL@$7$^$7$?!#<!$O!"JXMx$JFCD9$K(B
$B$D$$$F@bL@$7$^$9!#(B
----------------------$B$3$3$^$G(B---------------
