Mercurial > vim
view src/which.sh @ 31582:8bbc932fbd09 v9.0.1123
patch 9.0.1123: class function not implemented yet
Commit: https://github.com/vim/vim/commit/6bafdd41cbf8c06bc00f19dcf4e1c8292460b4dd
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 1 12:58:33 2023 +0000
patch 9.0.1123: class function not implemented yet
Problem: Class function not implemented yet.
Solution: Implement defining and calling a class function.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 01 Jan 2023 14:00:07 +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