• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..09-Nov-2017-

desksh/H09-Nov-2017-3,5242,813

include/H03-May-2022-2,2311,426

lib/tksh7.6/H09-Nov-2017-992658

scripts/H09-Nov-2017-223186

src/H09-Nov-2017-13,4178,630

tcl/H09-Nov-2017-31,65819,001

MakefileH A D09-Nov-20172.3 KiB9078

MamfileH A D09-Nov-201732.6 KiB735734

READMEH A D09-Nov-20172.8 KiB9167

RELEASEH A D09-Nov-20175.6 KiB109105

genH A D09-Nov-2017383 1918

widgetH A D09-Nov-2017390 1815

README

1======================================
2Tksh -  Tcl/Tk extension for KornShell
3======================================
4
5Jeff Korn
6jlk@research.att.com
7
82/10/00	(Version 7.6)
9
10Introduction
11------------
12
13This directory contains source and documentation for Tksh, an
14implementation of the Tcl C library on top of the Kornshell
15API.  Tksh allows Tcl libraries such as Tk to run on top of
16ksh93 without modification, and will also interpret Tcl
17scripts.  Tcl version 7.6 is implemented.  Tk version 4.2
18is provided with Tksh.
19
20Documentation
21-------------
22
23This directory contains the man page for tksh ("tksh.1").
24To print the man page, use troff with the normal -man macros:
25	troff -man tksh.1
26
27A paper describing Tksh is available on the Tksh homepage,
28as well as more up to date information.  The URL is:
29	http://www.cs.princeton.edu/~jlk/tksh
30
31
32Prerequisites
33-------------
34
35Tksh requires that you have the AST libraries (libshell.a,
36libcmd.a and libast.a) and required header files.  Tksh
37requires nmake to build, which is also part of the AST
38package.  If you do not have this software, you can obtain
39a copy at:
40
41	http://www.research.att.com/sw/tools/reuse
42
43You should be using ksh93e or later (Tksh will also work with
44ksh93d, but is less stable and requires the object file "main.o"
45from the ksh distribution).
46
47Installing Tksh
48---------------
49
50Tksh will install with any ANSI C compiler (tested with gcc) and
51nmake.   Typing "nmake" will run the configuration script and compile
52Tksh.  If compilation is succesful, you can try out tksh by running
53the binary "tksh" in the compile directory.
54
55There is a demo that you can run (the standard Tk demo) by typing
56	./tksh widget
57
58To install tksh, run:
59	nmake all install INSTALLROOT=directory-name
60Tksh will place the binary under $INSTALLROOT/bin
61and libraries under $INSTALLROOT/lib
62
63Examples
64--------
65
66In the "scripts" directory, there are a couple of example scripts
67written in Tksh.  The script "watchdir" is a good example
68of using shell and Tk together.  It should be run interactively
69(by using the "." command in ksh).  The script "mailfile" is
70a script that implements an open file dialog box and allows the
71user to email a file or directory.
72
73The directory desksh contains an example of a desktop environment
74written with Tksh.  This is a work in progress.
75
76Debugging
77---------
78
79To compile a version for debugging, define "DEBUG".  If Tksh is
80compiled as a debug version, setting the environment variable
81"TKSHDEBUG" (for example, by running the command as "TKSHDEBUG=1 ./tksh")
82will cause Tksh to print (many!) debug messages to stderr.
83
84Bugs
85----
86
87Send bug reports to me (jlk@research.att.com).  I'll try to fix
88problems when I can, but I don't have too much time to support
89this software.  Please include as much information as possible
90in your bug report.
91