Skip to content

Commit 70b3fb2

Browse files
committed
Update builtin.{txt,jax}
1 parent 727c285 commit 70b3fb2

File tree

2 files changed

+25
-14
lines changed

2 files changed

+25
-14
lines changed

doc/builtin.jax

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim バージョン 9.1. Last change: 2024 Jul 28
1+
*builtin.txt* For Vim バージョン 9.1. Last change: 2024 Aug 08
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -2548,8 +2548,10 @@ eventhandler() *eventhandler()*
25482548
executable({expr}) *executable()*
25492549
{expr}という名前の実行可能ファイルが存在するかどうか判定する。
25502550
{expr}は引数を何もつけないプログラム名でなければならない。
2551+
25512552
executable()は$PATHと通常のプログラム検索ディレクトリを参照す
2552-
る。 *PATHEXT*
2553+
る。
2554+
*PATHEXT*
25532555
MS-Windowsでは ".exe"、".bat" などの拡張子は含めても含めなくて
25542556
もよい。省略された場合は$PATHEXTの拡張子を検索する。よって
25552557
"foo.exe" が存在しなければ "foo.exe.bat" が見つかることもあり
@@ -2560,11 +2562,15 @@ executable({expr}) *executable()*
25602562
MS-Windowsではファイルが存在するかどうかだけを判定し、それが
25612563
ディレクトリでないことや、それが本当に実行可能であるかどうかは
25622564
判定されない。
2563-
MS-WindowsではVimと同じディレクトリにある実行ファイルは通常は
2564-
発見できる。Vimがこのディレクトリを$PATHに加えるためであ
2565-
る |win32-PATH|。これは、$NoDefaultCurrentDirectoryInExePath
2566-
環境変数を設定することで無効にできる。
2567-
*NoDefaultCurrentDirectoryInExePath*
2565+
MS-Windows では、Vim の実行ファイルと同じディレクトリに実行ファ
2566+
イルが常に見つかる。このディレクトリは $PATH に追加されるため、
2567+
|win32-PATH| を実行しても機能するはずだ。
2568+
*NoDefaultCurrentDirectoryInExePath*
2569+
MS-Windows では、通常、Vim のカレント作業ディレクトリにある実
2570+
行可能ファイルも見つかるが、
2571+
$NoDefaultCurrentDirectoryInExePath 環境変数を設定することでこ
2572+
れを無効にすることができる。
2573+
25682574
戻り値は数値:
25692575
1 存在する
25702576
0 存在しない

en/builtin.txt

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim version 9.1. Last change: 2024 Jul 28
1+
*builtin.txt* For Vim version 9.1. Last change: 2024 Aug 08
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2532,8 +2532,10 @@ executable({expr}) *executable()*
25322532
This function checks if an executable with the name {expr}
25332533
exists. {expr} must be the name of the program without any
25342534
arguments.
2535+
25352536
executable() uses the value of $PATH and/or the normal
2536-
searchpath for programs. *PATHEXT*
2537+
searchpath for programs.
2538+
*PATHEXT*
25372539
On MS-Windows the ".exe", ".bat", etc. can optionally be
25382540
included. Then the extensions in $PATHEXT are tried. Thus if
25392541
"foo.exe" does not exist, "foo.exe.bat" can be found. If
@@ -2543,11 +2545,14 @@ executable({expr}) *executable()*
25432545
then the name is also tried without adding an extension.
25442546
On MS-Windows it only checks if the file exists and is not a
25452547
directory, not if it's really executable.
2546-
On MS-Windows an executable in the same directory as Vim is
2547-
normally found. Since this directory is added to $PATH it
2548-
should also work to execute it |win32-PATH|. This can be
2549-
disabled by setting the $NoDefaultCurrentDirectoryInExePath
2550-
environment variable. *NoDefaultCurrentDirectoryInExePath*
2548+
On MS-Windows an executable in the same directory as the Vim
2549+
executable is always found. Since this directory is added to
2550+
$PATH it should also work to execute it |win32-PATH|.
2551+
*NoDefaultCurrentDirectoryInExePath*
2552+
On MS-Windows an executable in Vim's current working directory
2553+
is also normally found, but this can be disabled by setting
2554+
the $NoDefaultCurrentDirectoryInExePath environment variable.
2555+
25512556
The result is a Number:
25522557
1 exists
25532558
0 does not exist

0 commit comments

Comments
 (0)