Mercurial > vim
view src/which.sh @ 25088:5f6a70167daa v8.2.3081
patch 8.2.3081: cannot catch errors in a channel command
Commit: https://github.com/vim/vim/commit/11a632d60bde616feb298d180108819ebb1d04a0
Author: Alisue <lambdalisue@hashnote.net>
Date: Wed Jun 30 22:01:02 2021 +0200
patch 8.2.3081: cannot catch errors in a channel command
Problem: Cannot catch errors in a channel command.
Solution: Instead of skipping the error make it silent. (closes https://github.com/vim/vim/issues/8477)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 30 Jun 2021 22: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