Wish (Unix shell)

{{lowercase}}

{{Infobox software

| name = Wish

| logo =

| logo alt =

| logo caption =

| screenshot =

| screenshot alt =

| caption =

| collapsible =

| author = Mary Gray

| developer = Tcl Core Team and Maintainers

| released = {{Start date and age|1988|05|20}}

| discontinued =

| ver layout =

| latest release version = 8.6.10

| latest release date = {{Start date and age|2019|11|21}}

| latest preview version =

| latest preview date =

| repo =

| programming language =

| operating system = Cross-platform

| platform =

| size =

| language =

| language count =

| language footnote =

| genre = Unix shell

| license = BSD License

| alexa =

| website = {{URL|https://sourceforge.net/projects/tcl/files/Tcl/}}

| standard =

| AsOf =

}}

wish (Windowing Shell) is a Tcl interpreter extended with Tk commands,{{Cite book

| last1=Welch

| first1=Brent B.

| last2=Jones

| first2=Ken

| last3=Hobbs

| first3=Jeffrey

| date=2003

| title=Practical Programming in Tcl and Tk

| url=

| location=Upper Saddle River

| publisher=Pearson Education, Inc. - Prentice Hall PTTR

| page=25

| edition=4th

| isbn=0-13-038560-3

}} available for Unix-like operating systems supporting the X Window System, as well as macOS, Microsoft Windows,{{Cite web

| url=https://www.activestate.com/platform/supported-languages/tcl/

| title=ActiveState Tcl

| website=activestate.com

| access-date=2025-01-03

}}{{Cite web

| url=https://wiki.tcl-lang.org/page/Cygwin

| title=Cygwin

| website=wiki.tcl-lang.org

| access-date=2025-01-03

}} and Android.{{Cite web

| url=https://wiki.tcl-lang.org/page/AndroWish

| title=AndroWish

| website=wiki.tcl-lang.org

| access-date=2025-01-03

}} It provides developers the ability to create GUI widgets using the Tk toolkit and the Tcl programming language.

{{Citation

| title=Wish – A Window-Based Shell for X

| last=Gray

| first=Mary

| publisher=Computer Science Department, University of California, Berkeley

| date=May 20, 1988

| url=https://www2.eecs.berkeley.edu/Pubs/TechRpts/1988/CSD-88-420.pdf

| access-date=November 8, 2016

}}{{Cite book

| last=Flynt

| first=Clif

| date=2012-01-17

| title=Tcl/Tk: A Developer's Guide

| edition=3rd

| url=

| location=Elsevier

| publisher=Morgan Kaufman

| page=17

| isbn=978-0-12-384717-1}}

wish is open-source under the BSD License, and is currently part of the Tcl/Tk programming suite.{{citation needed|date=July 2021}}

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

{{reflist}}