[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn URL's with '..' elements

From: Vincent Lefevre <vincent+svn_at_vinc17.org>
Date: 2005-02-28 05:19:52 CET

On 2005-02-24 11:08:59 -0800, Ben Reser wrote:
> Firefox deals with file:/// URLs but users don't use it that often and
> it's not nearly as critical that it work right. But even various
> command line tools don't implement it consistently:

Command line tools work on the Unix file system. URLs are different.

> $ ls -l /home/breser/foo-tmp
> lrwxrwxrwx 1 breser breser 4 Feb 24 11:01
> /home/breser/foo-tmp -> /tmp/
>
> $ (cd /home/breser/foo-tmp/../; pwd)
> /home/breser
>
> $ ls -l /home/breser/foo-tmp/../
> total 27
> drwxr-xr-x 2 root root 2456 Jan 30 2004 bin/
> drwxr-xr-x 3 root root 2056 Feb 21 22:58 boot/
> drwxr-xr-x 1 root root 0 Dec 31 1969 dev/
> [snip]
>
> i.e. the root partition.

ay:~> ls -lg /home/lefevre/foo-tmp
lrwxrwxrwx 1 lefevre 4 2005-02-28 04:56:13 /home/lefevre/foo-tmp -> /tmp/
ay:~> (cd /home/lefevre/foo-tmp/../; pwd)
/
ay:~> ls -l /home/lefevre/foo-tmp/../
total 116
drwxr-xr-x 2 root root 4096 2003-09-08 02:11:46 backup/
[...]

zsh rules!

> Firefox gives /home/breser if you ask fore
> file:///home/breser/foo-tmp/..

Ditto for Mozilla, links and w3m. However lynx gives the root directory,
but IMHO this is a bug. The .. rule for URLs is described for relative
URLs only (RFCs 1808 and 2396), but for consistency, it would be a good
idea to use this rule for absolute URLs too IMHO.

-- 
Vincent Lefèvre <vincent_at_vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Feb 28 05:23:15 2005

This is an archived mail posted to the Subversion Dev mailing list.