Wiktprintable without text.svg

Voir « which » sur le Wiktionnaire.

Which est un pronom relatif anglais signifiant « lequel ».

which est également une commande POSIX qui retourne le chemin des fichiers qui seraient exécutés dans l'environnement courant si ses arguments avaient été donnés comme commandes dans un interpréteur de commandes strictement conforme à POSIX. Pour ce faire, which cherche dans la variable PATH les fichiers exécutables correspondants aux noms des arguments.

Exemple sous bash :

$> which which
$> which less 
$> which echo

Which se trompe pour echo, puisque c'est la plupart du temps une primitive du shell.
Sous zsh, which est une primitive du shell, ce qui lui donne l'avantage de retrouver les alias, les commandes internes et les fonctions du shell.

$> which which
which: shell built-in command
$> which less 
$> which echo 
echo: shell built-in command

Voir aussi

GNU Core Utilities

Liens externes

  • Portail de l’informatique Portail de l’informatique
Ce document provient de « Which ».

Wikimedia Foundation. 2010.

Contenu soumis à la licence CC-BY-SA. Source : Article Which de Wikipédia en français (auteurs)

Regardez d'autres dictionnaires:

  • Which — Which, pron. [OE. which, whilk, AS. hwilc, hwylc, hwelc, from the root of hw[=a] who + l[=i]c body; hence properly, of what sort or kind; akin to OS. hwilik which, OFries. hwelik, D. welk, G. welch, OHG. wel[=i]h, hwel[=i]h, Icel. hv[=i]l[=i]kr,… …   The Collaborative International Dictionary of English

  • Which — which  Unix утилита, отображающая полный путь к указанным командам или сценариям. Содержание 1 Описание 2 Опции 3 Пример использования …   Википедия

  • which — [ wıtʃ, hwıtʃ ] function word *** Which can be used in the following ways: as a determiner (followed by a noun): Which color do you like best? as a pronoun (without a following noun): Choose any card it doesn t matter which. (introducing a… …   Usage of the words and phrases in modern English

  • which — which  Unix утилита, отображающая полный путь к указанным командам или сценариям. Содержание 1 Описание 2 Опции 3 Пример использования …   Википедия

  • which — W1S1 [wıtʃ] determiner, pron [: Old English; Origin: hwilc] 1.) used to ask or talk about one or more members of a group of people or things, when you are uncertain about it or about them ▪ Which book are you looking for? ▪ Which are the most… …   Dictionary of contemporary English

  • Which — is an English relative pronoun and interrogative pronoun.Which may also refer to: *Which?, a UK charity and its magazine *which (Unix), a Unix command See also * English relative clauses, for discussion of when to use which and when to use that… …   Wikipedia

  • which — O.E. hwilc (W.Saxon) which, short for hwi lic of what form, from P.Gmc. *khwilikaz (Cf. O.S. hwilik, O.N. hvelikr, Swed. vilken, O.Fris. hwelik, M.Du. wilk, Du. welk, O.H.G. hwelich, Ger. welch, Goth. hvileiks …   Etymology dictionary

  • which — which; which·ev·er; which·so·ev·er; …   English syllables

  • Which? — trademark a British magazine that tests products made by different companies and provides reports on them to help people decide which one to buy. There is a similar magazine in the US called Consumer Reports …   Dictionary of contemporary English

  • Which? — Infobox Magazine title = Which? image size = image caption = frequency = Monthly category = Consumer publisher = Which? firstdate = October 1957 country = flagcountry|United Kingdom language = English website = [http://www.which.co.uk… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”

We are using cookies for the best presentation of our site. Continuing to use this site, you agree with this.