Mercurial > vim
view src/which.sh @ 30481:ac6b2ee967f1 v9.0.0576
patch 9.0.0576: unused loop variables
Commit: https://github.com/vim/vim/commit/b2209f213e2931cf3313b24868a9165bbb717cc4
Author: dundargoc <gocdundar@gmail.com>
Date: Sat Sep 24 15:55:27 2022 +0100
patch 9.0.0576: unused loop variables
Problem: Unused loop variables.
Solution: Use a while loop instead. (closes https://github.com/vim/vim/issues/11214)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 24 Sep 2022 17: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