Mercurial > hg > RemoteEditor > vim7
view src/which.sh @ 49:000769ce6c9d default tip
Added tag v7-3-618 for changeset 67300faee616
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 01 Aug 2012 18:08:37 +0900 |
parents | 76efa0be13f1 |
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