Mercurial > vim
view src/which.sh @ 10116:a6068b90c873 v7.4.2329
commit https://github.com/vim/vim/commit/26b84339fd8766898bcf6a259cbc2e0c38689726
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 4 21:42:36 2016 +0200
patch 7.4.2329
Problem: Error for min() and max() contains %s. (Nikolay Pavlov)
Solution: Pass the function name. (closes https://github.com/vim/vim/issues/1040)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 04 Sep 2016 21:45:07 +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