Mercurial > vim
view src/which.sh @ 23709:a0c4d04a58c4 v8.2.2396
patch 8.2.2396: Vim9: no white space allowed before "->"
Commit: https://github.com/vim/vim/commit/7cebe8ba7dd9a3a955e2da74014f11c42e1c6ac3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 23 14:22:16 2021 +0100
patch 8.2.2396: Vim9: no white space allowed before "->"
Problem: Vim9: no white space allowed before "->".
Solution: Allow for white space. (closes https://github.com/vim/vim/issues/7725)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 23 Jan 2021 14:30: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