pwd - Return the absolute path of the current working directory
pwd
pwd(1t) Tcl Built-In Commands pwd(1t) ______________________________________________________________________________ NAME pwd - Return the absolute path of the current working directory SYNOPSIS pwd ______________________________________________________________________________ DESCRIPTION Returns the absolute path name of the current working directory. EXAMPLE Sometimes it is useful to change to a known directory when running some external command using exec, but it is important to keep the applica- tion usually running in the directory that it was started in (unless the user specifies otherwise) since that minimizes user confusion. The way to do this is to save the current directory while the external com- mand is being run: set tarFile [file normalize somefile.tar] set savedDir [pwd] cd /tmp exec tar -xf $tarFile cd $savedDir ATTRIBUTES See attributes(7) for descriptions of the following attributes: +---------------+------------------+ |ATTRIBUTE TYPE | ATTRIBUTE VALUE | +---------------+------------------+ |Availability | runtime/tcl-8 | +---------------+------------------+ |Stability | Uncommitted | +---------------+------------------+ SEE ALSO file(n), cd(n), glob(n), filename(n) KEYWORDS working directory NOTES Source code for open source software components in Oracle Solaris can be found at https://www.oracle.com/downloads/opensource/solaris-source- code-downloads.html. This software was built from source available at https://github.com/oracle/solaris-userland. The original community source was downloaded from http://prdownloads.sourceforge.net/tcl/tcl- core8.6.7-src.tar.gz. Further information about this software can be found on the open source community website at https://www.tcl.tk/. Tcl pwd(1t)