summaryrefslogtreecommitdiffstats
path: root/doc/FindExec.3
diff options
context:
space:
mode:
authormsofer <msofer@noemail.net>2001-09-28 17:53:47 (GMT)
committermsofer <msofer@noemail.net>2001-09-28 17:53:47 (GMT)
commit991945061146c12bef85cc7b866e528ff90e25d7 (patch)
tree70d3d17f5036288dcb8df215daed6569cfdb2014 /doc/FindExec.3
parentdbce8ebad4da5fe89bb9659ac5ecc7c65614b8ca (diff)
downloadtcl-991945061146c12bef85cc7b866e528ff90e25d7.zip
tcl-991945061146c12bef85cc7b866e528ff90e25d7.tar.gz
tcl-991945061146c12bef85cc7b866e528ff90e25d7.tar.bz2
added a comment not to change the working directory before calling Tcl_GetNameOfExecutable [Bug 219215]
FossilOrigin-Name: 0e2254efe8c3197a36f31bc0910166382b71153e
Diffstat (limited to 'doc/FindExec.3')
-rw-r--r--doc/FindExec.36
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/FindExec.3 b/doc/FindExec.3
index f9d6d14..1ca7682 100644
--- a/doc/FindExec.3
+++ b/doc/FindExec.3
@@ -4,7 +4,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: FindExec.3,v 1.4 2000/03/03 02:57:37 hobbs Exp $
+'\" RCS: @(#) $Id: FindExec.3,v 1.4.2.1 2001/09/28 17:53:48 msofer Exp $
'\"
.so man.macros
.TH Tcl_FindExecutable 3 8.1 Tcl "Tcl Library Procedures"
@@ -39,7 +39,9 @@ It is also returned by the \fBinfo nameofexecutable\fR command.
.PP
On UNIX platforms this procedure is typically invoked as the very
first thing in the application's main program; it must be passed
-\fIargv[0]\fR as its argument. \fBTcl_FindExecutable\fR uses \fIargv0\fR
+\fIargv[0]\fR as its argument. It is important not to change the
+working directory before the invocation.
+\fBTcl_FindExecutable\fR uses \fIargv0\fR
along with the \fBPATH\fR environment variable to find the
application's executable, if possible. If it fails to find
the binary, then future calls to \fBinfo nameofexecutable\fR