Mercurial > vim
view src/which.sh @ 8433:5ae431a522ac
Added tag v7.4.1507 for changeset 6af4329b559217dd42c81a75b9d18f5b62d519d7
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 07 Mar 2016 15:30:05 +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