Mercurial > vim
view src/which.sh @ 7751:d6e62c739839 v7.4.1173
commit https://github.com/vim/vim/commit/65591001e405cbaaf9772c9375d0bb6049cf9a3a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 24 21:51:57 2016 +0100
patch 7.4.1173
Problem: No test for new behavior of v:true et al.
Solution: Add a test.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 24 Jan 2016 22:00:05 +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