Mercurial > vim
view src/which.sh @ 24888:b6ac4ed5e2d2 v8.2.2982
patch 8.2.2982: Vim9: future commands are not reserved yet
Commit: https://github.com/vim/vim/commit/742357718000927d652b1a98d313a3950571c8ec
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 12 14:53:05 2021 +0200
patch 8.2.2982: Vim9: future commands are not reserved yet
Problem: Vim9: future commands are not reserved yet.
Solution: Add commands to be implemented later. Make "this" a reserved
name.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 12 Jun 2021 15:00: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