On Nov 23, 2015, at 2:09 PM, j. van den hoff <veedeeh...@gmail.com> wrote:
> 
> from these, I would choose FOSSIL_ROOT.

I like “THIS” better, but maybe that’s just my C++ speaking.

> would a single slash be out of the question

Yes.  It already has a legal meaning, at least on POSIX-based web servers.  
Basically, multiple slashes are suppressed, so that you can do things like:

   string s1(“http://server/“), s2(“/path/to/page”);
   return s1 + s2;

…without adding explicit checks for this case of having both trailing and 
leading slashes.

It’ll also cause problems on Cygwin, since a leading // is interpreted as a UNC 
path.  e.g. //server/share/dir.  I believe I once read they justified that by a 
POSIX rule that said that doubled slashes at the start of the path were allowed 
to have implementation-defined meaning.  I could dig up the reference, if you 
like.

_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to