diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2004-10-27 09:35:37 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2004-10-27 09:35:37 (GMT) |
commit | 7ea5d4dbe8b82a86701cec95132a8a9557a5f105 (patch) | |
tree | 2f3f979845a50074bb8e2a0687cd98cb14ae6c26 /doc/cd.n | |
parent | a50314f88b2a6af554553927c9c0e590c0acf7dc (diff) | |
download | tcl-7ea5d4dbe8b82a86701cec95132a8a9557a5f105.zip tcl-7ea5d4dbe8b82a86701cec95132a8a9557a5f105.tar.gz tcl-7ea5d4dbe8b82a86701cec95132a8a9557a5f105.tar.bz2 |
Backport many doc fixes
Diffstat (limited to 'doc/cd.n')
-rw-r--r-- | doc/cd.n | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -5,7 +5,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: cd.n,v 1.3 2000/09/07 14:27:46 poenitz Exp $ +'\" RCS: @(#) $Id: cd.n,v 1.3.18.1 2004/10/27 09:35:38 dkf Exp $ '\" .so man.macros .TH cd n "" Tcl "Tcl Built-In Commands" @@ -23,6 +23,20 @@ Change the current working directory to \fIdirName\fR, or to the home directory (as specified in the HOME environment variable) if \fIdirName\fR is not given. Returns an empty string. +Note that the current working directory is a per-process resource; the +\fBcd\fR command changes the working directory for all interpreters +and (in a threaded environment) all threads. +.SH EXAMPLES +Change to the home directory of the user \fBfred\fR: +.CS +\fBcd\fR ~fred +.CE +.PP +Change to the directory \fBlib\fR that is a sibling directory of the +current one: +.CS +\fBcd\fR ../lib +.CE .SH "SEE ALSO" filename(n), glob(n), pwd(n) |