automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mkinstalldirs: directory names with embedded whitespace or newlines


From: Tim Van Holder
Subject: Re: mkinstalldirs: directory names with embedded whitespace or newlines
Date: Tue, 31 May 2005 08:31:25 +0200
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

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).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]