Mercurial > vim
view src/which.sh @ 17328:12c1f01b304e v8.1.1663
patch 8.1.1663: compiler warning for using size_t
commit https://github.com/vim/vim/commit/1072768b919efd1dd3fe28d58b24274cb92ad098
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 12 13:59:20 2019 +0200
patch 8.1.1663: compiler warning for using size_t
Problem: Compiler warning for using size_t.
Solution: Add type cast. (Mike Williams)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 12 Jul 2019 14:00:06 +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