Mercurial > vim
view src/which.sh @ 20063:cc146cde0b4d v8.2.0587
patch 8.2.0587: compiler warning for unused variable
Commit: https://github.com/vim/vim/commit/21cfe500f322a0bea3367c677943ea6c57c282b9
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 16 23:01:50 2020 +0200
patch 8.2.0587: compiler warning for unused variable
Problem: Compiler warning for unused variable.
Solution: Add UNUSED.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 16 Apr 2020 23:15: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