Mercurial > vim
view src/which.sh @ 2212:7d3cf4693a8f vim73
Some versions of Ruby redefine rb_str_new2 to rb_str_new_cstr.
Attempt at a fix.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 22 May 2010 21:56:55 +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