weird behavior of tclsh
From: Bhushit Joshipura (bhushit_at_hotmail.com)
Date: 07/31/04
- Next message: Geoff Caplan: "Workable encryption in Tcl??"
- Previous message: Jean-Luc FONTAINE: "ANNOUNCE: Tcl/Tk 8.4.7 rpm specification with thread 2.5.2 extension"
- Next in thread: Don Porter: "Re: weird behavior of tclsh"
- Reply: Don Porter: "Re: weird behavior of tclsh"
- Reply: Don Porter: "Re: weird behavior of tclsh"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Jul 2004 16:05:03 -0700
I think I am missing something badly.
I have lappend auto_path in my .tclshrc.
Isn't .tclshrc executed everytime you invoke tclsh?
Why am I getting 2 different outputs (and behaviors) when I do "tclsh
a.tcl" versus invoking tclsh and then sourcing a.tcl?
Thanks in advance,
-Bhu***
bhu***@jungle:/home/bhu***/learn/tcl/graph: head ~/.tclshrc
lappend auto_path <foo>/lib/tcllib
package require control
package require struct
bhu***@jungle:/home/bhu***/learn/tcl/graph: cat temp.tcl
puts $auto_path
bhu***@jungle:/home/bhu***/learn/tcl/graph: tclsh temp.tcl
<bar>/tcl8.3.3/lib/tcl8.3 <bar>/tcl8.3.3/lib /import/tools/lib
BUT
bhu***@jungle:/home/bhu***/learn/tcl/graph: tclsh
=========
8.3:/home/bhu***/learn/tcl/graph:-> source temp.tcl
<bar>/tcl8.3.3/lib/tcl8.3 <bar>/tcl8.3.3/lib /import/tools/lib
<foo>/lib/tcllib <foo>/lib/tcllib/control
- Next message: Geoff Caplan: "Workable encryption in Tcl??"
- Previous message: Jean-Luc FONTAINE: "ANNOUNCE: Tcl/Tk 8.4.7 rpm specification with thread 2.5.2 extension"
- Next in thread: Don Porter: "Re: weird behavior of tclsh"
- Reply: Don Porter: "Re: weird behavior of tclsh"
- Reply: Don Porter: "Re: weird behavior of tclsh"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]