#!/bin/bash
for i in $*; do
  type -all -path $i | head -1
done
