Tcl 8.4 issue 
Author Message
 Tcl 8.4 issue

I just installed Tcl 8.4 on my QNX system, and have lost the feature
that when I type a Unix command, then Tcl will go out to the OS and
execute the command.  Simple things, like ls and df.

Any thoughts?

-Jeff

--
Jeffrey W Percival, Senior Scientist and Associate Director
Space Astronomy Laboratory, University of Wisconsin - Madison
1150 University Ave, Madison, WI 53706 USA

http://www.*-*-*.com/ ~jwp



Tue, 12 Apr 2005 01:39:18 GMT  
 Tcl 8.4 issue

Quote:

> I just installed Tcl 8.4 on my QNX system, and have lost the feature
> that when I type a Unix command, then Tcl will go out to the OS and
> execute the command.  Simple things, like ls and df.

if tcl cannot identify a command
it passes it to another another command called 'unknown'

during tcl initialization
an 'unknown' proc is sometimes defined that will
search autopaths or try execing or various others before giving up

if qnx is a unix
you might to make sure its installed correctly in /usr/local/lib/tcl
or whereever your install directory is

you can also define your own 'unknown'

    rename unknown original-unknown
    proc unknown args {
        if {[regexp {^(\w+(?:\([^=])*\))?)\s*:=(.*)$} [join $args " "] s d e]} {
            upvar 1 $d var
            set var [uplevel 1 expr $e]
        } elseif {[catch {eval exec $args} value]} {
            if {[string first "command not found" $value]} {
                eval original-unknown $args
            } else {
                error $value $::errorInfo $::errorCode  
            }
        } else {
            return $value
        }
    }



Tue, 12 Apr 2005 05:16:56 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Tcl 7.4 to Tcl 8.4 porting issues

2. Install tcl 8.4 error, Can't find a usable init.tcl in the following directories

3. Tcl SOAP - Tcl 8.4?!?!?! (Immediate Need)

4. Stubs with Tcl 8.3 vs Tcl 8.4

5. CONST Tcl 8.3 vs Tcl 8.4

6. OpenGL Bindings for Tcl/Tk 8.4

7. problem about tcl 8.3 and 8.4

8. Problem compiling TCL 8.4 on HP-UX 11

9. VC++ 6.0 GUP application with TCL 8.4

10. VC++ 6.0 GUI application with TCL 8.4

11. Tcl 8.4 and Thread extension for Win XP and 2003

12. Problem with [binary scan] and sign in Tcl 8.4

 

 
Powered by phpBB® Forum Software