Mercurial > vim
comparison src/os_vms.c @ 5782:5ab2946f7ce5 v7.4.235
updated for version 7.4.235
Problem: It is not easy to get the full path of a command.
Solution: Add the exepath() function.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 01 Apr 2014 21:00:59 +0200 |
parents | 47a673b20e49 |
children | 9f9058aeba0d |
comparison
equal
deleted
inserted
replaced
5781:eabbe5a74948 | 5782:5ab2946f7ce5 |
---|---|
481 dir = (mch_isdir(vms_fmatch[i])); | 481 dir = (mch_isdir(vms_fmatch[i])); |
482 if (( dir && !(flags & EW_DIR)) || (!dir && !(flags & EW_FILE))) | 482 if (( dir && !(flags & EW_DIR)) || (!dir && !(flags & EW_FILE))) |
483 continue; | 483 continue; |
484 | 484 |
485 /* Skip files that are not executable if we check for that. */ | 485 /* Skip files that are not executable if we check for that. */ |
486 if (!dir && (flags & EW_EXEC) && !mch_can_exe(vms_fmatch[i])) | 486 if (!dir && (flags & EW_EXEC) && !mch_can_exe(vms_fmatch[i], NULL)) |
487 continue; | 487 continue; |
488 | 488 |
489 /* allocate memory for pointers */ | 489 /* allocate memory for pointers */ |
490 if (--files_free < 1) | 490 if (--files_free < 1) |
491 { | 491 { |