See the attached patch. This should make the Unix launcher support directory names like "Spaces & Special Char". At least here:
SH_VERSION='@(#)PD KSH v5.2.14 99/07/13.2' Can someone review and apply this patch please. Thanks. Regards, -- Christian
diff --git a/apache-maven/src/bin/mvn b/apache-maven/src/bin/mvn index 95a407d..cfb39b0 100755 --- a/apache-maven/src/bin/mvn +++ b/apache-maven/src/bin/mvn @@ -141,9 +141,9 @@ find_file_argument_basedir() { found_file_switch=0 for arg in "$@"; do if [ ${found_file_switch} -eq 1 ]; then - if [ -f ${arg} ]; then - basedir=$(dirname $(readlink -f "${arg}")) - if [ ! -d ${basedir} ]; then + if [ -f "${arg}" ]; then + basedir=$(dirname "$(readlink -f "${arg}")") + if [ ! -d "${basedir}" ]; then echo "Directory ${basedir} extracted from the -f/--file command-line argument ${arg} does not exist" >&2 exit 1 fi
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org