Mercurial > vim
view src/which.sh @ 14329:fe651f98e173 v8.1.0180
patch 8.1.0180: static analysis errors in Lua interface
commit https://github.com/vim/vim/commit/d6ef5f9b3d3df2d5dcc666c8741e99fcc77043f6
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 13 22:08:23 2018 +0200
patch 8.1.0180: static analysis errors in Lua interface
Problem: Static analysis errors in Lua interface. (Coverity)
Solution: Check for NULL pointers.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 13 Jul 2018 22:15:05 +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