Mercurial > vim
view src/which.sh @ 28771:cf9f5b5c8079 v8.2.4910
patch 8.2.4910: imperfect coding
Commit: https://github.com/vim/vim/commit/9ff7d717aa3176de5c61de340deb93f41c7780fc
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 7 17:45:16 2022 +0100
patch 8.2.4910: imperfect coding
Problem: Imperfect coding.
Solution: Make code nicer.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 07 May 2022 19:00:03 +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