Mercurial > vim
view src/which.sh @ 8633:80d78e1ab787 v7.4.1606
commit https://github.com/vim/vim/commit/953cc7fb139dc2ba8590f8b03a095b63f4e1208f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 19 18:52:29 2016 +0100
patch 7.4.1606
Problem: Having type() handle a Funcref that is or isn't a partial
differently causes problems for existing scripts.
Solution: Make type() return the same value. (Thinca)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 19 Mar 2016 19:00:06 +0100 |
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