diff options
author | Bram Moolenaar <Bram@vim.org> | 2004-06-24 15:53:16 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2004-06-24 15:53:16 +0000 |
commit | f4b8e57ffd048f9ca46dd7618939ba7a1b2294ec (patch) | |
tree | 08865b59e356d861c0d1321e4adaef8385e53635 /runtime/doc/eval.txt | |
parent | 69a7cb473ceae109b61fae9aa04ee0c29afba5d9 (diff) | |
download | vim-git-f4b8e57ffd048f9ca46dd7618939ba7a1b2294ec.tar.gz |
updated for version 7.0002
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r-- | runtime/doc/eval.txt | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 462d66bd9..9d39f61f6 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 7.0aa. Last change: 2004 Jun 20 +*eval.txt* For Vim version 7.0aa. Last change: 2004 Jun 22 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1236,10 +1236,19 @@ eventhandler() *eventhandler()* executable({expr}) *executable()* This function checks if an executable with the name {expr} exists. {expr} must be the name of the program without any - arguments. executable() uses the normal $PATH. - On MS-DOS and MS-Windows the ".exe", ".bat", etc. must be - included. It only checks if the file exists and is not a - directory, not if it's really executable. + arguments. + executable() uses the value of $PATH and/or the normal + searchpath for programs. *PATHEXT* + On MS-DOS and MS-Windows the ".exe", ".bat", etc. can + optionally be included. Then the extensions in $PATHEXT are + tried. Thus if "foo.exe" does not exist, "foo.exe.bat" can be + found. If $PATHEXT is not set then ".exe;.com;.bat;.cmd" is + used. A dot by itself can be used in $PATHEXT to try using + the name without an extension. When 'shell' looks like a + Unix shell, then the name is also tried without adding an + extension. + On MS-DOS and MS-Windows it only checks if the file exists and + is not a directory, not if it's really executable. The result is a Number: 1 exists 0 does not exist |