# Wish (Unix shell)

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Wish_(Unix_shell)
> Markdown URL: https://mediated.wiki/source/Wish_(Unix_shell).md
> Source: https://en.wikipedia.org/wiki/Wish_(Unix_shell)
> Source revision: 1333191794
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

{{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](/source/Cross-platform)
| platform = 
| size = 
| language = 
| language count = <!-- Number only -->
| language footnote = 
| genre = [Unix shell](/source/Unix_shell)
| license = [BSD License](/source/BSD_License)
| alexa = 
| website = {{URL|https://sourceforge.net/projects/tcl/files/Tcl/}}
| standard = 
| AsOf = 
}}
<code>'''wish'''</code> (Windowing Shell) is a [Tcl](/source/Tcl_(programming_language)) interpreter extended with [Tk commands](/source/Tk_(software)),<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](/source/Unix-like) [operating system](/source/operating_system)s supporting the [X Window System](/source/X_Window_System), as well as [macOS](/source/macOS), [Microsoft Windows](/source/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](/source/Android_(operating_system)).<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](/source/Graphical_widget) using the [Tk toolkit](/source/Tk_(software)) and the [Tcl](/source/Tcl_(programming_language)) programming language.<ref>
{{Citation
| title=Wish &ndash; 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](/source/open-source_software) under the [BSD License](/source/BSD_licenses), and is currently part of the [Tcl/Tk](/source/Tcl%2FTk) 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](/source/Unix) using the [shebang](/source/Shebang_(Unix)) construction; in [Windows](/source/Windows) by associating the <code>.tcl</code> extension with the wish program.

== See also ==
* [Tcl/Tk](/source/Tcl%2FTk)

== 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}}

---
Adapted from the Wikipedia article [Wish (Unix shell)](https://en.wikipedia.org/wiki/Wish_(Unix_shell)) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Wish_(Unix_shell)?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
