Mercurial > vim
view src/which.sh @ 13505:a784ef72b617 v8.0.1626
patch 8.0.1626: compiler warning for possible loss of data
commit https://github.com/vim/vim/commit/b571c63d481b065dc22465300e41a4b8cff66120
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 21 22:27:59 2018 +0100
patch 8.0.1626: compiler warning for possible loss of data
Problem: Compiler warning for possible loss of data.
Solution: Use size_t instead of int. (Christian Brabandt)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 21 Mar 2018 22:30: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