public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Symlinks and sharing a home directory between Windows and Linux
@ 2011-12-14 19:34 Andrew DeFaria
  2011-12-14 20:00 ` Jeremy Bopp
  0 siblings, 1 reply; 9+ messages in thread
From: Andrew DeFaria @ 2011-12-14 19:34 UTC (permalink / raw)
  To: cygwin

I like having only one home directory. It's extremely convenient to have 
the same settings and the like both when on Cygwin and when on Linux.

Often home directories are on NAS's and the like and served out via smb.

Somewhere along the line Cygwin's symlink implementation changed again. 
It used to be that symlinks ended in .lnk, which was sort of a pain but 
workable. One nice thing is that they didn't clash with Linux symlinks. 
A Cygwin symlink is not the same as a Linux symlink and so you could have:

$ ln -s a_file.txt link1 # in Cygwin
$ ln -s a_file.txt link1 # in Linux

and you'd end up having a symlink with the same name, link1, pointing to 
the same file from either Cygwin or Linux. This is because the Linux 
symlink is named just "link1" and the Cygwin symlink is named "link1.txt".

But now Cygwin names its symlink "link1". When you then log into Linux 
and try to access that link it doesn't work.

Where this is happening for me is that I put all of my rc files under 
~/.rc and then I symlink them to ~ as appropriate. So, for example I 
have a ~/.rc/inputrc. I then symlink them to ~/.inputrc. Under the old 
scenario I'd get a ~/.inputrc.lnk for Cygwin and a ~/.inputrc on Linux. 
Under the new scenario I get a clash.

Is there any way around this?


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

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

end of thread, other threads:[~2011-12-20 17:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-14 19:34 Symlinks and sharing a home directory between Windows and Linux Andrew DeFaria
2011-12-14 20:00 ` Jeremy Bopp
2011-12-14 20:15   ` Buchbinder, Barry (NIH/NIAID) [E]
2011-12-14 22:32     ` Andrew DeFaria
2011-12-15 23:48       ` Andrew DeFaria
2011-12-16  3:41         ` Larry Hall (Cygwin)
2011-12-16 16:21           ` Andrew DeFaria
2011-12-16 16:47             ` Jon Clugston
2011-12-20 17:44               ` Larry Hall (Cygwin)

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 read-only IMAP folder(s) and NNTP newsgroup(s).