Dumb Windows path parsing
Fairlight
fairlite at fairlite.com
Tue Nov 29 08:38:25 PST 2005
With neither thought nor caution, GCC blurted:
> Tried this:
>
> W:\>cd w:\no\such\.\path\.\..\foo\..\..\ccp\filepro
> The system cannot find the path specified.
Original:
W:\no\such\.\path\.\..\foo\..\..\ccp\filepro
Strip no-op '.' elements:
W:\no\such\path\..\foo\..\..\ccp\filepro
Strip one path element per '..' element:
W:\foo\ccp\filepro
You are apparently missing a needed '..' to negate the extra 'foo'.
mark->
More information about the Filepro-list
mailing list