This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: for the brave




Earnie Boyd wrote:

> Charles Wilson wrote:
> 
>>file://///Polgara/private/software/windows/cygwin-new/setup.ini
>>file:////Polgara/private/software/windows/cygwin-new/setup.ini
>>
>>
> 
> This makes sense.  You need two // after file: and two // before
> Polgara.  The extra fifth / was just ignored.


Sure, I understand that.  (Side note:  file://Polgara/... also works, 
for whatever reason).  But here's the question:

local_dir (as I typed it) already contained two leading '/' chars

the concat call prepended "file://" with two more '/' chars


2+2 = 4

So why does the resulting filespec have only 3 '/' chars?  Somewhere 
along the line, I don't know where, the local_dir I entered is having 
one of its leading '/' stripped...

--Chuck



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]