Mercurial > vim
view src/which.sh @ 29531:9f93092fb3cc v9.0.0107
patch 9.0.0107: condition always has the same value
Commit: https://github.com/vim/vim/commit/72981ac94ff7aeaa596d535448ee0bef46050acf
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 29 19:50:41 2022 +0100
patch 9.0.0107: condition always has the same value
Problem: Condition always has the same value.
Solution: Remove the condition.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 29 Jul 2022 21: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