Mercurial > vim
view src/which.sh @ 20959:2023b9a5c161 v8.2.1031
patch 8.2.1031: build failure with Perl5.32
Commit: https://github.com/vim/vim/commit/f5433fbfe4324fd443664fb924116b5ed675bef5
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 21 20:06:54 2020 +0200
patch 8.2.1031: build failure with Perl5.32
Problem: Build failure with Perl5.32.
Solution: Define a few more functions. (Felix Yan, closes https://github.com/vim/vim/issues/6310)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 21 Jun 2020 20:15:03 +0200 |
parents | 3fc0f57ecb91 |
children |
line wrap: on
line source
#! /bin/sh # # which.sh -- find where an executable is located. It's here because the # "which" command is not supported everywhere. Used by Makefile. IFS=":" for ac_dir in $PATH; do if test -f "$ac_dir/$1"; then echo "$ac_dir/$1" break fi done