This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Strange symlink and mv interaction


>From inside of ~/src/myprojects I did a:

	mv -- --1.2 ~/tla--escapes--1.2

where "--1.2" was a directory in ~/src/myprojects.  This did not move
~/src/myprojects/--1.2 to ~/src/tla--escapes--1.2.  What it did do was move
it to /cygdrive/c/tla--escapes--1.2.  Here are the pertinent paths:

/			is a binary system mount of	C:\cygwin
/c			is a binary system mount of	C:\
/home			is a binary system mount of	C:\home
~			is
/home/rdparker
~/src 		is a directory,			/home/rdparker/src
~/src/myprojects	is a symlink to			/c/MyProjects

The symlink is just intended to graft my Windows source into my preferred
~/src working location for use with reasonable tools.

It appears that when mv did a ".." from ~/src/myprojects, it actually did a
.. from /c/MyProjects not from ~/src/myprojects.  Is this the expected
behavior?  I don't have a *nix system handy to check out how .. works with
symlinked directories.  I left my laptop at home today and my wife shut off
my ssh box at home because the fan was scaring her rabbit.  (Hmm... how do
small pets respond to contact with an Athlon?  I smell hasenpfeffer.  Sorry
PETA, it's been a _long_ day.)

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]