Mercurial > vim
view src/which.sh @ 30383:9126e872893d v9.0.0527
patch 9.0.0527: long sign text may overflow buffer
Commit: https://github.com/vim/vim/commit/2b1ddf19f8f14365d0b998b4ac12ca85c0923475
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 21 11:21:57 2022 +0100
patch 9.0.0527: long sign text may overflow buffer
Problem: Long sign text may overflow buffer.
Solution: Use a larger buffer. Prevent for overflow.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 21 Sep 2022 12:30:07 +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