zsh-users
 help / color / mirror / code / Atom feed
* cd, pwd and symlinks
@ 1999-09-27  8:51 Hubert Canon
  1999-09-27 13:02 ` Adam Spiers
  0 siblings, 1 reply; 9+ messages in thread
From: Hubert Canon @ 1999-09-27  8:51 UTC (permalink / raw)
  To: zsh-users

Hi,

I have strange behaviours with symlinks to directories.

youkaidi ~ % echo $PROMPT
%B%m %~ %#%b 
youkaidi ~ % mkdir foo
youkaidi ~ % mkdir foo/bar
youkaidi ~ % md bar
youkaidi ~ % cd bar
youkaidi ~/bar % ln -s ../foo/bar foo
youkaidi ~/bar % cd foo
youkaidi ~/bar/foo % ls ..
bar
youkaidi ~/bar/foo % pwd
/udd/canon/foo/bar
youkaidi ~/bar/foo % /bin/pwd
/udd/canon/foo/bar
youkaidi ~/bar/foo % cd ..
youkaidi ~/bar % 



when I type `cd ../' followed with TAB, I get the expansion `cd ../bar'
and if I hit ENTER, I get :

youkaidi ~/bar/foo % cd ../bar 
cd: no such file or directory: ../bar

I have no problem with that :

youkaidi ~/bar/foo % cd ..
youkaidi ~/bar % 

But I would like a way to do something like that :

youkaidi ~/bar/foo % cd ./..     
youkaidi ~/foo % 

instead of `youkaidi ~/bar % ', that is going the directory given by
/bin/pwd, i.e. the directory without any symlinks, the same that is
used for the ls command and the completion system.




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~1999-09-30 19:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-27  8:51 cd, pwd and symlinks Hubert Canon
1999-09-27 13:02 ` Adam Spiers
1999-09-27 13:34   ` Hubert Canon
1999-09-27 13:42     ` Adam Spiers
1999-09-30 19:05       ` Adam Spiers
1999-09-27 23:05   ` Stefan Monnier
1999-09-28  0:11     ` Bart Schaefer
1999-09-28  0:47       ` Stefan Monnier
1999-09-29  1:11     ` Rob Windsor

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).