| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-14 15:24+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: debian-trixie debian-unstable |
| 21 |
#, no-wrap |
| 22 |
msgid "WHICH" |
| 23 |
msgstr "" |
| 24 |
|
| 25 |
#. type: SH |
| 26 |
#: debian-trixie debian-unstable |
| 27 |
#, no-wrap |
| 28 |
msgid "NAME" |
| 29 |
msgstr "" |
| 30 |
|
| 31 |
#. type: Plain text |
| 32 |
#: debian-trixie debian-unstable |
| 33 |
msgid "which - shows the full path of (shell) commands." |
| 34 |
msgstr "" |
| 35 |
|
| 36 |
#. type: SH |
| 37 |
#: debian-trixie debian-unstable |
| 38 |
#, no-wrap |
| 39 |
msgid "SYNOPSIS" |
| 40 |
msgstr "" |
| 41 |
|
| 42 |
#. type: Plain text |
| 43 |
#: debian-trixie debian-unstable |
| 44 |
msgid "B<which> [options] [--] programname [...]" |
| 45 |
msgstr "" |
| 46 |
|
| 47 |
#. type: SH |
| 48 |
#: debian-trixie debian-unstable |
| 49 |
#, no-wrap |
| 50 |
msgid "DESCRIPTION" |
| 51 |
msgstr "" |
| 52 |
|
| 53 |
#. type: Plain text |
| 54 |
#: debian-trixie debian-unstable |
| 55 |
msgid "" |
| 56 |
"B<Which> takes one or more arguments. For each of its arguments it prints to " |
| 57 |
"stdout the full path of the executables that would have been executed when " |
| 58 |
"this argument had been entered at the shell prompt. It does this by " |
| 59 |
"searching for an executable or script in the directories listed in the " |
| 60 |
"environment variable B<PATH> using the same algorithm as B<bash(1)>." |
| 61 |
msgstr "" |
| 62 |
|
| 63 |
#. type: Plain text |
| 64 |
#: debian-trixie debian-unstable |
| 65 |
msgid "This man page is generated from the file I<which.texinfo>." |
| 66 |
msgstr "" |
| 67 |
|
| 68 |
#. type: SH |
| 69 |
#: debian-trixie debian-unstable |
| 70 |
#, no-wrap |
| 71 |
msgid "OPTIONS" |
| 72 |
msgstr "" |
| 73 |
|
| 74 |
#. type: TP |
| 75 |
#: debian-trixie debian-unstable |
| 76 |
#, no-wrap |
| 77 |
msgid "B<--all>, B<-a>" |
| 78 |
msgstr "" |
| 79 |
|
| 80 |
#. type: Plain text |
| 81 |
#: debian-trixie debian-unstable |
| 82 |
msgid "Print all matching executables in B<PATH>, not just the first." |
| 83 |
msgstr "" |
| 84 |
|
| 85 |
#. type: TP |
| 86 |
#: debian-trixie debian-unstable |
| 87 |
#, no-wrap |
| 88 |
msgid "B<--read-alias>, B<-i>" |
| 89 |
msgstr "" |
| 90 |
|
| 91 |
#. type: Plain text |
| 92 |
#: debian-trixie debian-unstable |
| 93 |
msgid "" |
| 94 |
"Read aliases from stdin, reporting matching ones on stdout. This is useful " |
| 95 |
"in combination with using an alias for which itself. For example" |
| 96 |
msgstr "" |
| 97 |
|
| 98 |
#. type: Plain text |
| 99 |
#: debian-trixie debian-unstable |
| 100 |
msgid "B<alias which=\\'alias | which -i\\'>." |
| 101 |
msgstr "" |
| 102 |
|
| 103 |
#. type: TP |
| 104 |
#: debian-trixie debian-unstable |
| 105 |
#, no-wrap |
| 106 |
msgid "B<--skip-alias>" |
| 107 |
msgstr "" |
| 108 |
|
| 109 |
#. type: Plain text |
| 110 |
#: debian-trixie debian-unstable |
| 111 |
msgid "" |
| 112 |
"Ignore option \\`--read-alias\\', if any. This is useful to explicity search " |
| 113 |
"for normal binaries, while using the \\`--read-alias\\' option in an alias " |
| 114 |
"or function for which." |
| 115 |
msgstr "" |
| 116 |
|
| 117 |
#. type: TP |
| 118 |
#: debian-trixie debian-unstable |
| 119 |
#, no-wrap |
| 120 |
msgid "B<--read-functions>" |
| 121 |
msgstr "" |
| 122 |
|
| 123 |
#. type: Plain text |
| 124 |
#: debian-trixie debian-unstable |
| 125 |
msgid "" |
| 126 |
"Read shell function definitions from stdin, reporting matching ones on " |
| 127 |
"stdout. This is useful in combination with using a shell function for which " |
| 128 |
"itself. For example:" |
| 129 |
msgstr "" |
| 130 |
|
| 131 |
#. type: Plain text |
| 132 |
#: debian-trixie debian-unstable |
| 133 |
msgid "B<which() { declare -f | which --read-functions $@ }>" |
| 134 |
msgstr "" |
| 135 |
|
| 136 |
#. type: Plain text |
| 137 |
#: debian-trixie debian-unstable |
| 138 |
msgid "export -f which" |
| 139 |
msgstr "" |
| 140 |
|
| 141 |
#. type: TP |
| 142 |
#: debian-trixie debian-unstable |
| 143 |
#, no-wrap |
| 144 |
msgid "B<--skip-functions>" |
| 145 |
msgstr "" |
| 146 |
|
| 147 |
#. type: Plain text |
| 148 |
#: debian-trixie debian-unstable |
| 149 |
msgid "" |
| 150 |
"Ignore option \\`--read-functions\\', if any. This is useful to explicity " |
| 151 |
"search for normal binaries, while using the \\`--read-functions\\' option in " |
| 152 |
"an alias or function for which." |
| 153 |
msgstr "" |
| 154 |
|
| 155 |
#. type: TP |
| 156 |
#: debian-trixie debian-unstable |
| 157 |
#, no-wrap |
| 158 |
msgid "B<--skip-dot>" |
| 159 |
msgstr "" |
| 160 |
|
| 161 |
#. type: Plain text |
| 162 |
#: debian-trixie debian-unstable |
| 163 |
msgid "Skip directories in B<PATH> that start with a dot." |
| 164 |
msgstr "" |
| 165 |
|
| 166 |
#. type: TP |
| 167 |
#: debian-trixie debian-unstable |
| 168 |
#, no-wrap |
| 169 |
msgid "B<--skip-tilde>" |
| 170 |
msgstr "" |
| 171 |
|
| 172 |
#. type: Plain text |
| 173 |
#: debian-trixie debian-unstable |
| 174 |
msgid "" |
| 175 |
"Skip directories in B<PATH> that start with a tilde and executables which " |
| 176 |
"reside in the B<HOME> directory." |
| 177 |
msgstr "" |
| 178 |
|
| 179 |
#. type: TP |
| 180 |
#: debian-trixie debian-unstable |
| 181 |
#, no-wrap |
| 182 |
msgid "B<--show-dot>" |
| 183 |
msgstr "" |
| 184 |
|
| 185 |
#. type: Plain text |
| 186 |
#: debian-trixie debian-unstable |
| 187 |
msgid "" |
| 188 |
"If a directory in B<PATH> starts with a dot and a matching executable was " |
| 189 |
"found for that path, then print \"./programname\" rather than the full path." |
| 190 |
msgstr "" |
| 191 |
|
| 192 |
#. type: TP |
| 193 |
#: debian-trixie debian-unstable |
| 194 |
#, no-wrap |
| 195 |
msgid "B<--show-tilde>" |
| 196 |
msgstr "" |
| 197 |
|
| 198 |
#. type: Plain text |
| 199 |
#: debian-trixie debian-unstable |
| 200 |
msgid "" |
| 201 |
"Output a tilde when a directory matches the B<HOME> directory. This option " |
| 202 |
"is ignored when which is invoked as root." |
| 203 |
msgstr "" |
| 204 |
|
| 205 |
#. type: TP |
| 206 |
#: debian-trixie debian-unstable |
| 207 |
#, no-wrap |
| 208 |
msgid "B<--tty-only>" |
| 209 |
msgstr "" |
| 210 |
|
| 211 |
#. type: Plain text |
| 212 |
#: debian-trixie debian-unstable |
| 213 |
msgid "Stop processing options on the right if not on tty." |
| 214 |
msgstr "" |
| 215 |
|
| 216 |
#. type: TP |
| 217 |
#: debian-trixie debian-unstable |
| 218 |
#, no-wrap |
| 219 |
msgid "B<--version,-v,-V>" |
| 220 |
msgstr "" |
| 221 |
|
| 222 |
#. type: Plain text |
| 223 |
#: debian-trixie debian-unstable |
| 224 |
msgid "Print version information on standard output then exit successfully." |
| 225 |
msgstr "" |
| 226 |
|
| 227 |
#. type: TP |
| 228 |
#: debian-trixie debian-unstable |
| 229 |
#, no-wrap |
| 230 |
msgid "B<--help>" |
| 231 |
msgstr "" |
| 232 |
|
| 233 |
#. type: Plain text |
| 234 |
#: debian-trixie debian-unstable |
| 235 |
msgid "Print usage information on standard output then exit successfully." |
| 236 |
msgstr "" |
| 237 |
|
| 238 |
#. type: SH |
| 239 |
#: debian-trixie debian-unstable |
| 240 |
#, no-wrap |
| 241 |
msgid "RETURN VALUE" |
| 242 |
msgstr "" |
| 243 |
|
| 244 |
#. type: Plain text |
| 245 |
#: debian-trixie debian-unstable |
| 246 |
msgid "" |
| 247 |
"B<Which> returns the number of failed arguments, or -1 when no " |
| 248 |
"\\`programname\\' was given." |
| 249 |
msgstr "" |
| 250 |
|
| 251 |
#. type: SH |
| 252 |
#: debian-trixie debian-unstable |
| 253 |
#, no-wrap |
| 254 |
msgid "EXAMPLE" |
| 255 |
msgstr "" |
| 256 |
|
| 257 |
#. type: Plain text |
| 258 |
#: debian-trixie debian-unstable |
| 259 |
msgid "" |
| 260 |
"The recommended way to use this utility is by adding an alias (C shell) or " |
| 261 |
"shell function (Bourne shell) for B<which> like the following:" |
| 262 |
msgstr "" |
| 263 |
|
| 264 |
#. type: Plain text |
| 265 |
#: debian-trixie debian-unstable |
| 266 |
msgid "[ba]sh:" |
| 267 |
msgstr "" |
| 268 |
|
| 269 |
#. type: Plain text |
| 270 |
#: debian-trixie debian-unstable |
| 271 |
#, no-wrap |
| 272 |
msgid "" |
| 273 |
"which ()\n" |
| 274 |
"{\n" |
| 275 |
" (alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@\n" |
| 276 |
"}\n" |
| 277 |
"export -f which\n" |
| 278 |
msgstr "" |
| 279 |
|
| 280 |
#. type: Plain text |
| 281 |
#: debian-trixie debian-unstable |
| 282 |
msgid "[t]csh:" |
| 283 |
msgstr "" |
| 284 |
|
| 285 |
#. type: Plain text |
| 286 |
#: debian-trixie debian-unstable |
| 287 |
#, no-wrap |
| 288 |
msgid "alias which \\'alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde\\'\n" |
| 289 |
msgstr "" |
| 290 |
|
| 291 |
#. type: Plain text |
| 292 |
#: debian-trixie debian-unstable |
| 293 |
msgid "" |
| 294 |
"This will print the readable ~/ and ./ when starting which from your prompt, " |
| 295 |
"while still printing the full path when used from a script:" |
| 296 |
msgstr "" |
| 297 |
|
| 298 |
#. type: Plain text |
| 299 |
#: debian-trixie debian-unstable |
| 300 |
#, no-wrap |
| 301 |
msgid "" |
| 302 |
"E<gt> which q2\n" |
| 303 |
"~/bin/q2\n" |
| 304 |
"E<gt> echo \\`which q2\\`\n" |
| 305 |
"/home/carlo/bin/q2\n" |
| 306 |
msgstr "" |
| 307 |
|
| 308 |
#. type: SH |
| 309 |
#: debian-trixie debian-unstable |
| 310 |
#, no-wrap |
| 311 |
msgid "BUGS" |
| 312 |
msgstr "" |
| 313 |
|
| 314 |
#. type: Plain text |
| 315 |
#: debian-trixie debian-unstable |
| 316 |
msgid "" |
| 317 |
"The B<HOME> directory is determined by looking for the B<HOME> environment " |
| 318 |
"variable, which aborts when this variable doesn\\'t exist. B<Which> will " |
| 319 |
"consider two equivalent directories to be different when one of them " |
| 320 |
"contains a path with a symbolic link." |
| 321 |
msgstr "" |
| 322 |
|
| 323 |
#. type: SH |
| 324 |
#: debian-trixie debian-unstable |
| 325 |
#, no-wrap |
| 326 |
msgid "AUTHOR" |
| 327 |
msgstr "" |
| 328 |
|
| 329 |
#. type: Plain text |
| 330 |
#: debian-trixie debian-unstable |
| 331 |
msgid "Carlo Wood E<lt>[email protected]<gt>" |
| 332 |
msgstr "" |
| 333 |
|
| 334 |
#. type: SH |
| 335 |
#: debian-trixie debian-unstable |
| 336 |
#, no-wrap |
| 337 |
msgid "SEE ALSO" |
| 338 |
msgstr "" |
| 339 |
|
| 340 |
#. type: Plain text |
| 341 |
#: debian-trixie debian-unstable |
| 342 |
msgid "B<bash(1)>" |
| 343 |
msgstr "" |