wordpad: work around Vista
[msysgit.git] / bin / wordpad
blob1df3fb099fc79169219ade3b8e23dae96f2fe6a1
1 #!/bin/sh
3 WORDPAD=$(echo "$PROGRAMFILES/Windows NT"/*/wordpad.exe)
5 test $# = 1 &&
6 case "$1" in
7 \\*|/*|?:*) ;; # do nothing
8 *) set "$(pwd)/$1";;
9 esac
11 test -x "$WORDPAD" && exec "$WORDPAD" "$@"
13 echo "Could not launch $WORDPAD"
14 exit 1