Mercurial > vim
view src/which.sh @ 28135:3ccd55c472b8 v8.2.4592
patch 8.2.4592: search continues after giving E1204
Commit: https://github.com/vim/vim/commit/b10ff5c1b3581ed4990d196bed51b4a8f961e8a2
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 19 11:31:38 2022 +0000
patch 8.2.4592: search continues after giving E1204
Problem: Search continues after giving E1204.
Solution: Return failure after giving E1204. (closes https://github.com/vim/vim/issues/9972)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 19 Mar 2022 12:45:03 +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