1#!/bin/env sh
2: cygwin.i386 ldd -- how many ways does this confirm the windows bias?
3for f
4do	case $f in
5	*.exe)	;;
6	*)	f=$f.exe ;;
7	esac
8	p=$(type $f)
9	case $p in
10	*" not found"*)
11		;;
12	*)	p=${p##* }
13		case $p in
14		?*)	f=$p ;;
15		esac
16		;;
17	esac
18	cygcheck $(cygpath -aw $f) |
19	for w in $(sed -e 's/^[[:space:]]*//' -e '/^$/d' -e '/^Use /d')
20	do	cygpath -u "$w"
21	done
22done
23