{{lowercase}} {{Infobox software | name = Wish | logo = <!-- Image name is enough. --> | logo alt = | logo caption = | screenshot = <!-- Image name is enough. --> | screenshot alt = | caption = | collapsible = <!-- Any text here will collapse the screenshot. --> | author = Mary Gray | developer = Tcl Core Team and Maintainers | released = {{Start date and age|1988|05|20}}<!-- {{Start date and age|YYYY|MM|DD|df=yes/no}} --> | discontinued = <!-- Set to yes if software is discontinued, otherwise omit. --> | ver layout = <!-- simple (default) or stacked --> | latest release version = 8.6.10 | latest release date = {{Start date and age|2019|11|21}} | latest preview version = | latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes/no}} --> | repo = <!-- {{URL|example.org}} --> | programming language = | operating system = Cross-platform | platform = | size = | language = | language count = <!-- Number only --> | language footnote = | genre = Unix shell | license = BSD License | alexa = | website = {{URL|https://sourceforge.net/projects/tcl/files/Tcl/}} | standard = | AsOf = }} <code>'''wish'''</code> (Windowing Shell) is a Tcl interpreter extended with Tk commands,<ref>{{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 }}</ref> available for Unix-like operating systems supporting the X Window System, as well as macOS, Microsoft Windows,<ref>{{Cite web | url=https://www.activestate.com/platform/supported-languages/tcl/ | title=ActiveState Tcl | website=activestate.com | access-date=2025-01-03 }}</ref><ref>{{Cite web | url=https://wiki.tcl-lang.org/page/Cygwin | title=Cygwin | website=wiki.tcl-lang.org | access-date=2025-01-03 }}</ref> and Android.<ref>{{Cite web | url=https://wiki.tcl-lang.org/page/AndroWish | title=AndroWish | website=wiki.tcl-lang.org | access-date=2025-01-03 }}</ref> It provides developers the ability to create GUI widgets using the Tk toolkit and the Tcl programming language.<ref> {{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 }}</ref><ref>{{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}}</ref>
<code>wish</code> is open-source under the BSD License, and is currently part of the Tcl/Tk programming suite.{{citation needed|date=July 2021}}
== Usage == <code>wish</code> can be run without parameters. Then the <code>%</code> 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 <code>wish</code> 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 <code>.tcl</code> extension with the wish program.
== See also == * Tcl/Tk
== References == {{reflist}}
== External links == * [http://linux.die.net/man/1/wish A man page for wish]
{{Unix Shells}}
Category:Software that uses Tk (software) Category:Unix shells Category:Software using the BSD license
{{programming-software-stub}}