cd.n
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:1k
- '"
- '" Copyright (c) 1993 The Regents of the University of California.
- '" Copyright (c) 1994-1996 Sun Microsystems, Inc.
- '"
- '" 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.18.1 2004/10/27 09:35:38 dkf Exp $
- '"
- .so man.macros
- .TH cd n "" Tcl "Tcl Built-In Commands"
- .BS
- '" Note: do not modify the .SH NAME line immediately below!
- .SH NAME
- cd - Change working directory
- .SH SYNOPSIS
- fBcd fR?fIdirNamefR?
- .BE
- .SH DESCRIPTION
- .PP
- Change the current working directory to fIdirNamefR, or to the
- home directory (as specified in the HOME environment variable) if
- fIdirNamefR is not given.
- Returns an empty string.
- Note that the current working directory is a per-process resource; the
- fBcdfR 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 fBfredfR:
- .CS
- fBcdfR ~fred
- .CE
- .PP
- Change to the directory fBlibfR that is a sibling directory of the
- current one:
- .CS
- fBcdfR ../lib
- .CE
- .SH "SEE ALSO"
- filename(n), glob(n), pwd(n)
- .SH KEYWORDS
- working directory