#!/bin/sh # emulates cygwin 'cygpath' while [[ "${1:0:1}" == "-" ]]; do shift done echo $1