diff options
author | donal.k.fellows@manchester.ac.uk <dkf> | 2004-05-25 20:27:38 (GMT) |
---|---|---|
committer | donal.k.fellows@manchester.ac.uk <dkf> | 2004-05-25 20:27:38 (GMT) |
commit | 95cd162eb2a233f99cab8a33ebccec052e98ed9c (patch) | |
tree | bdaee7e02f90c1e26d54eec8f6411c7eb5f5f456 /doc/cd.n | |
parent | e1377d6f5485a9369164d83e14b171e2b4dd7a75 (diff) | |
download | tcl-95cd162eb2a233f99cab8a33ebccec052e98ed9c.zip tcl-95cd162eb2a233f99cab8a33ebccec052e98ed9c.tar.gz tcl-95cd162eb2a233f99cab8a33ebccec052e98ed9c.tar.bz2 |
Added examples
Diffstat (limited to 'doc/cd.n')
-rw-r--r-- | doc/cd.n | 13 |
1 files changed, 12 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.4 2004/04/22 14:36:30 dkf Exp $ +'\" RCS: @(#) $Id: cd.n,v 1.5 2004/05/25 20:27:38 dkf Exp $ '\" .so man.macros .TH cd n "" Tcl "Tcl Built-In Commands" @@ -26,6 +26,17 @@ 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 +cd ~fred +.CE +.PP +Change to the directory \fBlib\fR that is a sibling directory of the +current one: +.CS +cd ../lib +.CE .SH "SEE ALSO" filename(n), glob(n), pwd(n) |