Michael J Gruber schrieb: > + # strip superfluous ./ from path > + path=$(echo "$path" | sed -e 's|^\(\./\)*||' -e's|/\./|/|g') At a minimum: path=$(echo "$path" | sed -e 's|^/\(\./\)*|/|g' -e's|^\./||') Otherwise you would turn "foo./bar" into "foobar", right? But why only care about ./ but not ../ or /// or trailing / as well? -- Hannes -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html