Tksh

Difference between version 0 and 1 - Previous - Next
'''[http://jlk.org/research.html%|%Tksh]''', by [Jeffrey Korn], is an
implementation of the Tcl [C] library written on top of [ksh%|%ksh93].



** Attributes **

   download:   http://www2.research.att.com/~astopen/download/gen/ast-open.html

   website:   http://web.archive.org/web/20090316024446/http://www.cs.princeton.edu/~jlk/tksh/ 

   website (defunct):   http://www.cs.princeton.edu/%7Ejlk/tkshproj/

Also:
   * https://github.com/att/ast/ 
   * https://github.com/att/ast/tree/master/src/lib/libtksh 



** Reference **

    [http://web.archive.org/web/20080706150651/http://www.cs.princeton.edu/~jlk/tksh/man/tksh.1.html%|%man page]:   

    [https://www.usenix.org/legacy/publications/library/proceedings/tcl96/full_papers/korn/index.html%|%Tksh: A Tcl Library for KornShell]([http://web.archive.org/web/20080907031025/http://www.cs.princeton.edu/~jlk/tksh/paper/tksh.html%|%alternate]), [Jeffrey Korn], 1996:   



** Description **
        
tksh is an implementation of the Tcl C library written on top of the library for the new KornShell (ksh93). tksh emulates the behavior of Tcl by using the API that is provided for extending ksh93, which is similar to the Tcl library in that it allows access to variables, functions and other state of the interpreter. This implementation requires no modification to ksh93, and allows Tcl libraries such as Tk to run on top of ksh93 unchanged, making it possible to use shell scripts in place of Tcl scripts. ksh93 is well suited for use with Tk because it is backward compatible with sh, making it both easy to learn and easy to extend existing scripts to provide a graphical user interface.

tksh is not yet another port of Tk to another language -- it allows Tcl scripts to run without modification using the ksh93 internals. This makes it possible to combine Tcl and ksh93, which is useful for writing ksh93 scripts that use components that have been implemented in Tcl (such as Tk widgets). 

The latest tksh works with Tcl 7.6.  The author is
no longer working on this application. 



** Examples **

   [http://web.archive.org/web/20080705183448/http://www.cs.princeton.edu/~jlk/tksh/scripts/watchdir%|%watchdir]:   Keeps track of visited directories and shows the files # in the current directory

   [http://web.archive.org/web/20080719232337/http://www.cs.princeton.edu/~jlk/tksh/scripts/mailfile%|%mailfile]:   Allows the user to email a file or directory to another # user.


<<categories>> ksh