Jump to content

wish (Unix shell)

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Kolarp (talk | contribs) at 17:00, 9 December 2017 (Typo). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

wish (Windowing Shell) is a simple scripting or interactive Unix shell for the X Window System and MacOS. There are implementations for Microsoft Windows[1][2] and Android[3] as well. It provides users with the facility to be able to control graphical user interface components via the Tk toolkit, and enables utilization of the Tcl programming language.[4][5][6]

wish is open source and is currently part of the Tcl/Tk programming suite.

Usage

wish can be run without parameters. Then the % prompt is displayed and the interpreter awaits for commands entered interactively by the user. An empty window is opened in which the widgets created by user commands are displayed. This mode is suitable for experimenting.

More often wish is run with a name of a file containing a Tcl/Tk script as a parameter. It is also possible to run directly Tcl/Tk scripts; in Unix using the shebang construction; in Windows by associating the .tcl extension with the wish program.

See also

References

  1. ^ "ActiveTcl". ActiveState.
  2. ^ "Cygwin". 2017-05-04.
  3. ^ "AndroWish". 2013-12-04.
  4. ^ Gray, Mary (May 20, 1988), Wish – A Window-Based Shell for X (PDF), Computer Science Department, University of California, Berkeley, retrieved November 8, 2016
  5. ^ Flynt, Clif (2012-01-17). Tcl/Tk: A Developer's Guide (3rd ed.). Elsevier: Morgan Kaufman. p. 17. ISBN 978-0-12-384717-1.
  6. ^ Welch, Brent B.; Jones, Ken; Hobbs, Jeffrey (2003). Practical Programming in Tcl and Tk (4th ed.). Upper Saddle River: Pearson Education, Inc. - Prentice Hall PTTR. p. 25. ISBN 0-13-038560-3.