--- mcore-src/trunk/mcore-tools/daemon/include/daemon.global.class 2013/05/10 13:14:35 2083 +++ mcore-src/trunk/mcore-tools/daemon/include/daemon.global.class 2013/05/13 07:06:33 2091 @@ -411,7 +411,7 @@ -mindepth) shift; opts+=" -mindepth $1" ;; -maxdepth) shift; opts+=" -maxdepth $1" ;; -type) shift; type="$1" ;; - -name) shift; opts+="-name $1" ;; + -name) shift; opts+=" -name $1" ;; '') continue ;; *) path="$1" ;; esac @@ -433,7 +433,7 @@ # default to files [[ -z ${type} ]] && type=f - for i in $(find ${path} ${opts} -type ${type} -print '%f\n' | sort) + for i in $(find ${path} ${opts} -type ${type} -printf '%f\n' | sort) do if [[ -z ${retval} ]] then