Mercurial > vim
view src/which.sh @ 2173:ecb9c2b70b0f v7.2.437
updated for version 7.2.437
Problem: When "\\\n" appears in the expression result the \n doesn't result
in a line break. (Andy Wokula)
Solution: Also replace a \n after a backslash into \r.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 21 May 2010 13:08:58 +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