Mercurial > vim
view src/which.sh @ 13192:9bd4151e5aeb v8.0.1470
patch 8.0.1470: integer overflow when using regexp pattern
commit https://github.com/vim/vim/commit/2c7b906afb86b986476cfc959732e433b1b4a3b1
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 4 18:22:46 2018 +0100
patch 8.0.1470: integer overflow when using regexp pattern
Problem: Integer overflow when using regexp pattern. (geeknik)
Solution: Use a long instead of int. (Christian Brabandt, closes https://github.com/vim/vim/issues/2251)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 04 Feb 2018 18:30:05 +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