summaryrefslogtreecommitdiff
path: root/src/bin/pgtclsh/pgtclAppInit.c
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1996-07-23 03:03:43 +0000
committerMarc G. Fournier <scrappy@hub.org>1996-07-23 03:03:43 +0000
commitbe5bfd54f213f0618ae51113da64d28793904301 (patch)
tree064e1a0873314ceb454b9cb2d1481b8def449fb7 /src/bin/pgtclsh/pgtclAppInit.c
parentd1724d65b7506b376fc8a090e73344c9587371ad (diff)
downloadpostgresql-be5bfd54f213f0618ae51113da64d28793904301.tar.gz
Put in a new FAQ
Merged in Dr. George's src/bin tree (possibly broke monitor/psql in process)
Diffstat (limited to 'src/bin/pgtclsh/pgtclAppInit.c')
-rw-r--r--src/bin/pgtclsh/pgtclAppInit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bin/pgtclsh/pgtclAppInit.c b/src/bin/pgtclsh/pgtclAppInit.c
index cc38ca34a7..a4ee17a032 100644
--- a/src/bin/pgtclsh/pgtclAppInit.c
+++ b/src/bin/pgtclsh/pgtclAppInit.c
@@ -109,6 +109,11 @@ Tcl_AppInit(interp)
* then no user-specific startup file will be run under any conditions.
*/
+#if (TCL_MAJOR_VERSION <= 7) && (TCL_MINOR_VERSION < 5)
tcl_RcFileName = "~/.tclshrc";
+#else
+ Tcl_SetVar(interp, "tcl_rcFileName", "~/.tclshrc", TCL_GLOBAL_ONLY);
+#endif
+
return TCL_OK;
}