Mercurial > vim
view src/which.sh @ 26990:4b8d836db103 v8.2.4024
patch 8.2.4024: confusing error message if imported name is used directly
Commit: https://github.com/vim/vim/commit/32884ad753ffb462d27998beb50678888209075f
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 7 12:45:29 2022 +0000
patch 8.2.4024: confusing error message if imported name is used directly
Problem: Confusing error message if imported name is used directly.
Solution: Give a better error message.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 07 Jan 2022 14:00:04 +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