Noah Friedman wrote: > +for arg > +do > + qdir= dir= qsub= sub=// # "//" can't appear normally > + case $arg in > + ./* | ../* | /* ) : ;;
Don't forget about DOS-style paths - backslashes instead of slashes, drive specs, etc. Once you start to really process paths (especially any 'is path absolute' checks), a lot of system-specific gotchas creep in... There's a reason why mkinstalldirs was so simple - it Just Worked(tm) (well, aside from paths with spaces and/or newlines anyway).