2 # Look for cygpath (a pretty good indicator that we're in cygwin)
3 # and, if found, use it to protect evil drive letters
4 if command -v cygpath >/dev/null 2>&1; then
5 filefrom=$(cygpath "$1")
7 scp -C -p "$filefrom" "$fileto"
9 # here, we're probably unix