Mercurial > vim
view src/which.sh @ 17955:22e0c3abe0cf
Added tag v8.1.1973 for changeset 3bcd05fc2d56857f21cdfcb9f0acb58088191e29
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 04 Sep 2019 12:00: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