The Crap I Put Up With

Ovid on 2008-05-09T13:18:11

I hate Solaris. I really do.

cache_builder_xml $ ls ../../trunk/conf
../../trunk/conf: No such file or directory
cache_builder_xml $ cd ../../
~ $ ls trunk/conf
cat               log               pips3.yml
database.yml      mad.yml           related_apps.yml


old solaris

rjw1 on 2008-05-09T13:57:00

you hate old solaris. 10 does the right thing.

Re:old solaris

drhyde on 2008-05-10T11:45:07

I bet that he started in a directory that he'd got to via a symlink. In which case, old Solaris is doing exactly the right thing. If new Solaris has changed that, then it's a bug.

Re:old solaris

jplindstrom on 2008-05-12T14:11:49

It hasn't, this is 10.

Is this just a shell issue?

bluto on 2008-05-12T17:12:54

To most older shells, cd'ing upward through an NFS mount or though a path that contained a symlink as one of the components can (theoretically) be handled in multiple ways, and they usually pick the easiest to implement (i.e. they don't track where you originally came from).

Personally I prefer zsh to lie to me when I cd into and out of symlink containing paths by making them appear to be "real", though it can be configured to be less transparent. I imagine most modern shells, like bash, handle this as well.