Mercurial > vim
view src/which.sh @ 16461:826ad48af5e3 v8.1.1235
patch 8.1.1235: compiler warnings for using STRLEN() value
commit https://github.com/vim/vim/commit/c0af78fa0869d39314336faef36239f62f09e148
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Apr 29 19:47:22 2019 +0200
patch 8.1.1235: compiler warnings for using STRLEN() value
Problem: Compiler warnings for using STRLEN() value.
Solution: Cast to int. (Christian Brabandt, Mike Williams)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 29 Apr 2019 20:00:08 +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