Sorry for the slow response, too busy to keep up. :-(

On 4/12/07, Jerome Louvel <[EMAIL PROTECTED]> wrote:
[...]
> Actually, no, that's not the behavior for web pages.  To get
> "http://host.com/sub"; you would have to add "/sub" to e.g.,
> "http://host.com/dir";.  Adding "sub" to e.g. "http://host.com/dir";
> should result in "http://host.com/dir/sub";.

As there is no trailing slash after "dir", the current output is correct.
See the URI spec for more complex examples:
http://gbiv.com/protocols/uri/rfc/rfc3986.html#reference-examples

Note that we enforce all the URI spec examples with a set of unit tests.
Looking at how tricky those examples are, we feel very confident about the
quality of Reference's output :)

Sorry, IMO that's still incorrect...

If 'dir' is a directory then the behavior is as I noted.  If 'dir' is
actually a file *then* the behavior that you mention would be correct.

This behavior is obvious (Principle of Least Surprise) if one mimics
the behavior by actually trying these out in a shell and move around a
filesystem. :-)

Take care,
John

Reply via email to