Mercurial > vim
view src/which.sh @ 12275:67bc88591ede v8.0.1017
patch 8.0.1017: test for MS-Windows $HOME always passes
commit https://github.com/vim/vim/commit/dde60341115effc9789742c2f4565d184e98b6b5
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 30 14:55:42 2017 +0200
patch 8.0.1017: test for MS-Windows $HOME always passes
Problem: Test for MS-Windows $HOME always passes.
Solution: Rename the test function. Make the test pass.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 30 Aug 2017 15:00:06 +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