OSDN Git Service

fix japanese message wrapping
[linuxjm/jm.git] / info / GNU_which / draft / html / opusiyonnoGai-Yao-.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <!-- Created by GNU Texinfo 6.8, https://www.gnu.org/software/texinfo/ -->
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6 <title>オプションの概要 (which: コマンドのフルパス表示)</title>
7
8 <meta name="description" content="オプションの概要 (which: コマンドのフルパス表示)">
9 <meta name="keywords" content="オプションの概要 (which: コマンドのフルパス表示)">
10 <meta name="resource-type" content="document">
11 <meta name="distribution" content="global">
12 <meta name="Generator" content="makeinfo">
13 <meta name="viewport" content="width=device-width,initial-scale=1">
14
15 <link href="index.html" rel="start" title="Top">
16 <link href="sakuin.html" rel="index" title="さくいん">
17 <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
18 <link href="index.html" rel="up" title="Top">
19 <link href="Fan-riZhi-.html" rel="next" title="返り値">
20 <link href="which-noQi-Dong-.html" rel="prev" title="which の起動">
21 <style type="text/css">
22 <!--
23 a.copiable-anchor {visibility: hidden; text-decoration: none; line-height: 0em}
24 a.summary-letter {text-decoration: none}
25 blockquote.indentedblock {margin-right: 0em}
26 div.display {margin-left: 3.2em}
27 div.example {margin-left: 3.2em}
28 kbd {font-style: oblique}
29 pre.display {font-family: inherit}
30 pre.format {font-family: inherit}
31 pre.menu-comment {font-family: serif}
32 pre.menu-preformatted {font-family: serif}
33 span.nolinebreak {white-space: nowrap}
34 span.roman {font-family: initial; font-weight: normal}
35 span.sansserif {font-family: sans-serif; font-weight: normal}
36 span:hover a.copiable-anchor {visibility: visible}
37 ul.no-bullet {list-style: none}
38 -->
39 </style>
40
41
42 </head>
43
44 <body lang="ja">
45 <div class="chapter" id="g_t_30aa_30d7_30b7_30e7_30f3_306e_6982_8981">
46 <div class="header">
47 <p>
48 Next: <a href="Fan-riZhi-.html" accesskey="n" rel="next">返り値</a>, Previous: <a href="which-noQi-Dong-.html" accesskey="p" rel="prev"><code>which</code> の実行</a>, Up: <a href="index.html" accesskey="u" rel="up"><code>which</code>: コマンドのフルパス表示</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="sakuin.html" title="Index" rel="index">Index</a>]</p>
49 </div>
50 <hr>
51 <span id="opusiyonnoGai-Yao-"></span><h2 class="chapter">3 オプションの概要</h2>
52 <span id="index-Options_002c-command-line"></span>
53 <span id="index-Command-line-Options"></span>
54 <span id="index-Overview-of-command-line-options"></span>
55
56 <dl compact="compact">
57 <dd><span id="index-_002d_002dall"></span>
58 <span id="index-_002da"></span>
59 </dd>
60 <dt><span>&lsquo;<samp>--all</samp>&rsquo;</span></dt>
61 <dt><span>&lsquo;<samp>-a</samp>&rsquo;</span></dt>
62 <dd><p><code>PATH</code> において見つかった実行ファイルをすべて表示します。最初に見つかった一つだけではありません。
63 </p>
64 <span id="index-_002d_002dread_002dalias"></span>
65 <span id="index-_002di"></span>
66 </dd>
67 <dt><span>&lsquo;<samp>--read-alias</samp>&rsquo;</span></dt>
68 <dt><span>&lsquo;<samp>-i</samp>&rsquo;</span></dt>
69 <dd><p>標準入力からエイリアスを読み込んで、合致したものを標準出力します。 これは which そのものを含む alias
70 において、本オプションを合わせて利用すると便利です。 たとえば以下です。<br> <code>alias which='alias | which -i'</code>
71 </p>
72 <span id="index-_002d_002dskip_002dalias"></span>
73 </dd>
74 <dt><span>&lsquo;<samp>--skip-alias</samp>&rsquo;</span></dt>
75 <dd><p><samp>--read-alias</samp> が指定されても無視します。which に対するエイリアスや関数の中で
76 <samp>--read-alias</samp> オプションを利用している場合であっても、明示的に通常の実行ファイルを検索する場合に利用できます。
77 </p>
78 <span id="index-_002d_002dread_002dfunctions"></span>
79 </dd>
80 <dt><span>&lsquo;<samp>--read-functions</samp>&rsquo;</span></dt>
81 <dd><p>標準入力からシェル関数定義を読み込んで、合致したものを標準出力します。これは which
82 そのものを含むシェル関数において、本オプションを合わせて利用すると便利です。たとえば以下です。<br> <code>which() { declare
83 -f | which --read-functions $@ }<br>export -f which</code>
84 </p>
85 <span id="index-_002d_002dskip_002dfunctions"></span>
86 </dd>
87 <dt><span>&lsquo;<samp>--skip-functions</samp>&rsquo;</span></dt>
88 <dd><p><samp>--read-functions</samp> が指定されても無視します。which に対するエイリアスや関数の中で
89 <samp>--read-functions</samp> オプションを利用している場合であっても、明示的に通常の実行ファイルを検索する場合に利用できます。
90 </p>
91 <span id="index-_002d_002dskip_002ddot"></span>
92 </dd>
93 <dt><span>&lsquo;<samp>--skip-dot</samp>&rsquo;</span></dt>
94 <dd><p><code>PATH</code> 内のディレクトリにうち、ドットで始まるディレクトリは除外します。
95 </p>
96 <span id="index-_002d_002dskip_002dtilde"></span>
97 </dd>
98 <dt><span>&lsquo;<samp>--skip-tilde</samp>&rsquo;</span></dt>
99 <dd><p>チルダで始まる <code>PATH</code> 内のディレクトリ、および <code>HOME</code> ディレクトリ内に存在する実行ファイルは除外します。
100 </p>
101 <span id="index-_002d_002dshow_002ddot"></span>
102 </dd>
103 <dt><span>&lsquo;<samp>--show-dot</samp>&rsquo;</span></dt>
104 <dd><p><code>PATH</code> 内にドットで始まるディレクトリがあって、合致した実行ファイルがその中に見つかった場合には、フルパスでなく
105 &quot;./programname&quot; と表示します。
106 </p>
107 <span id="index-_002d_002dshow_002dtilde"></span>
108 </dd>
109 <dt><span>&lsquo;<samp>--show-tilde</samp>&rsquo;</span></dt>
110 <dd><p>ディレクトリが <code>HOME</code> に合致した場合、チルダを表示します。 このオプションは root ユーザーが実行した際には無視されます。 
111 </p>
112 <span id="index-_002d_002dtty_002donly"></span>
113 </dd>
114 <dt><span>&lsquo;<samp>--tty-only</samp>&rsquo;</span></dt>
115 <dd><p>tty 上でない場合、この右側に指定されたオプションの実行を停止します。
116 </p>
117 <span id="index-_002d_002dversion"></span>
118 <span id="index-_002dv"></span>
119 <span id="index-_002dV"></span>
120 </dd>
121 <dt><span>&lsquo;<samp>--version, -v, -V</samp>&rsquo;</span></dt>
122 <dd><p>バージョン情報を標準出力して正常終了します。
123 </p>
124 <span id="index-_002d_002dhelp"></span>
125 </dd>
126 <dt><span>&lsquo;<samp>--help</samp>&rsquo;</span></dt>
127 <dd><p>利用方法を標準出力して正常終了します。
128 </p>
129 </dd>
130 </dl>
131
132 </div>
133
134
135
136 </body>
137 </html>