view src/which.sh @ 32437:bdbaaed04acd v9.0.1550

patch 9.0.1550: in cmdline window S-Tab does not select previous completion Commit: https://github.com/vim/vim/commit/81f277f52664031a56aeabe889f1c36402316dba Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 13 13:55:09 2023 +0100 patch 9.0.1550: in cmdline window S-Tab does not select previous completion Problem: In cmdline window S-Tab does not select previous completion. (Maxim Kim) Solution: Add a mappint for S-Tab. (closes #12116)
author Bram Moolenaar <Bram@vim.org>
date Sat, 13 May 2023 15:00:04 +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