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

Re: svn commit: r10133 - in trunk/subversion: include libsvn_subr tests/clients/cmdline tests/libsvn_subr

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2004-07-04 18:44:59 CEST

On Sun, 2004-07-04 at 12:13, Branko Èibej wrote:
> $ mkdir -p A/B/C/D
> $ mkdir D
> $ ln -s A/B/C/D d
> $ cd d/../D

Not only is this specific to the shell cd command, it's also
shell-specific. tcsh puts you in A/B/C/D, as does Solaris /bin/sh, but
bash and Solaris /usr/xpg4/bin/sh put you in D.

The shell cd command is a little weird, I think mainly because it's
trying to paper over automounter symlinks. It's not a particularly good
precedent to follow. It's also a bit more complicated than what we're
currently doing in apr_filepath_merge and the new
svn_path_canonicalize. Observe:

  $ cd /tmp/d
  $ pwd
  /tmp/d
  $ /bin/pwd
  /tmp/A/B/C/D
  $ cd ..
  $ pwd
  /tmp

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jul 4 18:47:18 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.