~ubuntu-branches/ubuntu/lucid/vflib3/lucid

« back to all changes in this revision

Viewing changes to whereisit

  • Committer: Bazaar Package Importer
  • Author(s): Masayuki Hatta
  • Date: 2002-04-15 12:10:24 UTC
  • Revision ID: james.westby@ubuntu.com-20020415121024-cann32wucyfbq22f
Tags: upstream-3.6.12
ImportĀ upstreamĀ versionĀ 3.6.12

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
IFS="${IFS=     }";
 
4
old_ifs="$IFS"; 
 
5
IFS="${IFS}:"
 
6
 
 
7
for dir in $PATH; do
 
8
  test -z "$dir" && dir=.
 
9
  if test -x $dir/$1; then
 
10
    echo $dir/$1
 
11
    exit 0;
 
12
  fi
 
13
done
 
14
exit 1