Mercurial > vim
view src/which.sh @ 31767:29e0a0f7160f
Added tag v9.0.1215 for changeset 9f1504e36ae9c3b72f3e0082182615660b891874
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 17 Jan 2023 22:45:03 +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