What is the purpose of this bash script? (It is a portion of a larger script.)
if [ $# -gt 0 ]
then
case $1 in
-*) ;;
*) exec $* ;;
esac
fi
A related question:
http://stackoverflow.com/questions/2046762/problem-with-metamap-inappropriate-ioctl-for-device