Mercurial > vim
view src/which.sh @ 12496:93c55991726c
Added tag v8.0.1127 for changeset 65f8c6fcfd836fa00934df0138f899aaaf45e8bc
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 18 Sep 2017 22:00:04 +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