Mercurial > vim
view src/which.sh @ 14497:a7b2dc5f1306 v8.1.0262
patch 8.1.0262: not enough testing for getftype()
commit https://github.com/vim/vim/commit/1598f9937a18c056d7b713dc254325c8f8456c8f
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 9 22:08:57 2018 +0200
patch 8.1.0262: not enough testing for getftype()
Problem: Not enough testing for getftype().
Solution: Add a test. (Dominique Pelle, closes https://github.com/vim/vim/issues/3300)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 09 Aug 2018 22:15:04 +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