This file is indexed.

/usr/share/doc/aptitude/html/fr/ch02s04s01.html is in aptitude-doc-fr 0.6.11-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Recherche de chaînes de caractères</title><link rel="stylesheet" type="text/css" href="aptitude.css"><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Manuel de l'utilisateur d'aptitude"><link rel="up" href="ch02s04.html" title="Motifs de recherche"><link rel="prev" href="ch02s04.html" title="Motifs de recherche"><link rel="next" href="ch02s04s02.html" title="Raccourcis pour les termes de recherche"><link rel="preface" href="pr01.html" title="Introduction"><link rel="chapter" href="ch01.html" title="Chapitre 1. Démarrage rapide"><link rel="chapter" href="ch02.html" title="Chapitre 2. Guide de référence d'aptitude"><link rel="chapter" href="ch03.html" title="Chapitre 3. Foire aux questions sur aptitude"><link rel="chapter" href="ch04.html" title="Chapitre 4. Crédits"><link rel="reference" href="rn01.html" title="Référence de l'interface en ligne de commande"><link rel="refentry" href="rn01re01.html" title="aptitude"><link rel="refentry" href="rn01re02.html" title="aptitude-create-state-bundle"><link rel="refentry" href="rn01re03.html" title="aptitude-run-state-bundle"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Recherche de chaînes de caractères</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch02s04.html"><img src="images/prev.gif" alt="Précédent"></a> </td><th width="60%" align="center">Motifs de recherche</th><td width="20%" align="right"> <a accesskey="n" href="ch02s04s02.html"><img src="images/next.gif" alt="Suivant"></a></td></tr></table><hr></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="idp62915888"></a>Recherche de chaînes de caractères</h3></div></div></div><p>
	  De nombreux termes de recherche peuvent prendre une chaîne de caractères
comme paramètre et la faire correspondre avec un ou plusieurs champs d'un
paquet. Les chaînes peuvent être ou non données entre guillemets
(<span class="quote">« <span class="quote"><code class="literal">"</code></span> »</span>), de sorte que
<span class="quote">« <span class="quote"><code class="literal"><code class="literal"><a class="link" href="ch02s04s05.html#searchTermName">?name</a></code>(scorch)</code></span> »</span> et
<span class="quote">« <span class="quote"><code class="literal"><code class="literal"><a class="link" href="ch02s04s05.html#searchTermName">?name</a></code>("scorch")</code></span> »</span> effectueront la même
recherche. Si vous entrez une chaîne de recherche avec des guillemets, vous
pouvez inclure le caractère guillemet dans la chaîne en le faisant précéder
par une barre oblique inverse (<span class="quote">« <span class="quote"><code class="literal">\</code></span> »</span>) : par
exemple, <span class="quote">« <span class="quote"><code class="literal"><code class="literal"><a class="link" href="ch02s04s05.html#searchDescription">?description</a></code>("\"easy\"")</code></span> »</span>
sélectionnera tous les paquets dont la description contient la chaîne
<span class="quote">« <span class="quote"><code class="literal">"easy"</code></span> »</span>.
	</p><p>
	  Si vous entrez une chaîne <span class="quote">« <span class="quote">nue</span> »</span>, c'est-à-dire sans guillemets,
alors <span class="command"><strong>aptitude</strong></span> considérera que la chaîne sera terminée lorsqu'il
rencontrera une parenthèse fermante ou la virgule précédant le second
argument du terme de recherche<a href="#ftn.idp62927888" class="footnote" name="idp62927888"><sup class="footnote">[14]</sup></a>. Pour
retirer la signification particulière à ces caractères, faites-les précéder
d'un tilde (<span class="quote">« <span class="quote"><code class="literal">~</code></span> »</span>). Par exemple
<span class="quote">« <span class="quote"><code class="literal"><code class="literal"><a class="link" href="ch02s04s05.html#searchDescription">?description</a></code>(etc))</code></span> »</span> est une erreur de
syntaxe, car la première parenthèse fermante
<span class="quote">« <span class="quote"><code class="literal">)</code></span> »</span> termine le terme <code class="literal"><a class="link" href="ch02s04s05.html#searchDescription">?description</a></code> et la
deuxième ne correspond à aucune parenthèse ouvrante. En revanche,
<span class="quote">« <span class="quote"><code class="literal"><code class="literal"><a class="link" href="ch02s04s05.html#searchDescription">?description</a></code>(etc~))</code></span> »</span> sélectionne tous les
paquets dont la description contient le texte
<span class="quote">« <span class="quote"><code class="literal">etc)</code></span> »</span>. Il y a des considérations
supplémentaires si vous utilisez la forme courte d'un terme. Consultez <a class="xref" href="ch02s04s02.html" title="Raccourcis pour les termes de recherche">la section intitulée « Raccourcis pour les termes de recherche »</a> pour les détails.
	</p><p>
	  La plupart des recherches de texte (pour les noms de paquets, les
descriptions, etc.) sont des  <a class="ulink" href="http://web.archive.org/web/20060719181658/http://sitescooper.org/tao_regexps.html" target="_top">expressions
rationnelles</a> insensibles à la casse. Une expression rationnelle sera
en correspondance avec un champ dès que n'importe quelle portion du texte
correspond à l'expression rationnelle. Par exemple,
<span class="quote">« <span class="quote"><code class="literal">ogg[0-9]</code></span> »</span> sera en correspondance avec
<span class="quote">« <span class="quote"><code class="literal">libogg5</code></span> »</span>,
<span class="quote">« <span class="quote"><code class="literal">ogg123</code></span> »</span> et
<span class="quote">« <span class="quote"><code class="literal">theogg4u</code></span> »</span>. Certains caractères ont une
signification particulière à l'intérieur d'une expression rationnelle
<a href="#ftn.idp62947056" class="footnote" name="idp62947056"><sup class="footnote">[15]</sup></a>, donc si vous voulez les utiliser dans
des recherches, vous devez les protéger avec une barre oblique inverse : par
exemple, pour trouver <span class="quote">« <span class="quote"><code class="literal">g++</code></span> »</span>, vous devrez
utiliser le motif <span class="quote">« <span class="quote"><code class="literal">g\+\+</code></span> »</span>.
	</p><p>
	  Les caractères <span class="quote">« <span class="quote"><code class="literal">!</code></span> »</span> et
<span class="quote">« <span class="quote"><code class="literal">|</code></span> »</span> ont une signification particulière à
l'intérieur des motifs de recherche. Afin d'inclure ces caractères dans une
chaîne sans guillemets, vous pouvez les faire précéder par un tilde
(<span class="quote">« <span class="quote"><code class="literal">~</code></span> »</span>). Par exemple, pour faire correspondre
les paquets dont la description contient <span class="quote">« <span class="quote">grand</span> »</span> ou
<span class="quote">« <span class="quote">oblique</span> »</span>, utilisez le motif
<span class="quote">« <span class="quote"><code class="literal"><code class="literal"><a class="link" href="ch02s04s05.html#searchDescription">?description</a></code>(grand~|oblique)</code></span> »</span>. Vous
trouverez cependant plus pratique peut-être d'utiliser simplement une chaîne
de caractères entre guillemets :
<span class="quote">« <span class="quote"><code class="literal"><code class="literal"><a class="link" href="ch02s04s05.html#searchDescription">?description</a></code>("grand|oblique")</code></span> »</span>.
	</p><div class="footnotes"><br><hr style="width:100; text-align:left;margin-left: 0"><div id="ftn.idp62927888" class="footnote"><p><a href="#idp62927888" class="para"><sup class="para">[14] </sup></a>
	      <span class="command"><strong>aptitude</strong></span> ne traitera la virgule comme un caractère spécial qu'en cas de
présence d'un deuxième argument, donc (par exemple)
<span class="quote">« <span class="quote"><code class="literal"><code class="literal"><a class="link" href="ch02s04s05.html#searchTermName">?name</a></code>(apt,itude)</code></span> »</span> cherche la chaîne
<span class="quote">« <span class="quote"><code class="literal">apt,itude</code></span> »</span> dans le champ du nom
(<span class="quote">« <span class="quote"><code class="literal">Name</code></span> »</span>) des paquets.
	    </p><p>
	      Bien que ce comportement soit bien défini, il peut surprendre. Il est
recommandé d'utiliser des chaînes entre guillemets pour tous les motifs qui
contiennent des caractères qui pourraient avoir un sens particulier.
	    </p></div><div id="ftn.idp62947056" class="footnote"><p><a href="#idp62947056" class="para"><sup class="para">[15] </sup></a>
	      Les caractères avec une signification particulière sont :
<span class="quote">« <span class="quote"><code class="literal">+</code></span> »</span>, <span class="quote">« <span class="quote"><code class="literal">-</code></span> »</span>,
<span class="quote">« <span class="quote"><code class="literal">.</code></span> »</span>, <span class="quote">« <span class="quote"><code class="literal">(</code></span> »</span>,
<span class="quote">« <span class="quote"><code class="literal">)</code></span> »</span>, <span class="quote">« <span class="quote"><code class="literal">|</code></span> »</span>,
<span class="quote">« <span class="quote"><code class="literal">[</code></span> »</span>, <span class="quote">« <span class="quote"><code class="literal">]</code></span> »</span>,
<span class="quote">« <span class="quote"><code class="literal">^</code></span> »</span>, <span class="quote">« <span class="quote"><code class="literal">$</code></span> »</span> et
<span class="quote">« <span class="quote"><code class="literal">?</code></span> »</span>. Remarquez que certains de ceux-ci sont
aussi des caractères spéciaux d'<span class="command"><strong>aptitude</strong></span>, donc si vous voulez, par
exemple, taper un <span class="quote">« <span class="quote"><code class="literal">|</code></span> »</span> littéral, il vous
faudra le protéger deux fois :
<span class="quote">« <span class="quote"><code class="literal"><code class="literal"><a class="link" href="ch02s04s05.html#searchDescription">?description</a></code>(\~|)</code></span> »</span> fera correspondre les
paquets dont la description contient une barre verticale
(<span class="quote">« <span class="quote"><code class="literal">|</code></span> »</span>).
	    </p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch02s04.html"><img src="images/prev.gif" alt="Précédent"></a> </td><td width="20%" align="center"><a accesskey="u" href="ch02s04.html"><img src="images/up.gif" alt="Niveau supérieur"></a></td><td width="40%" align="right"> <a accesskey="n" href="ch02s04s02.html"><img src="images/next.gif" alt="Suivant"></a></td></tr><tr><td width="40%" align="left" valign="top">Motifs de recherche </td><td width="20%" align="center"><a accesskey="h" href="index.html"><img src="images/home.gif" alt="Sommaire"></a></td><td width="40%" align="right" valign="top"> Raccourcis pour les termes de recherche</td></tr></table></div></body></html>