From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9217 invoked by alias); 15 Dec 2011 23:48:26 -0000 Received: (qmail 9205 invoked by uid 22791); 15 Dec 2011 23:48:25 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 15 Dec 2011 23:48:10 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RbL1y-0006Xz-3D for cygwin@cygwin.com; Fri, 16 Dec 2011 00:48:06 +0100 Received: from 5520-maca-inet1-outside.broadcom.com ([216.31.211.11]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Dec 2011 00:48:06 +0100 Received: from Andrew by 5520-maca-inet1-outside.broadcom.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Dec 2011 00:48:06 +0100 To: cygwin@cygwin.com From: Andrew DeFaria Subject: Re: Symlinks and sharing a home directory between Windows and Linux Date: Thu, 15 Dec 2011 23:48:00 -0000 Message-ID: References: <4EE90067.9020109@bopp.net> <0105D5C1E0353146B1B222348B0411A20A43E78632@NIHMLBX02.nih.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: X-Stationery: 0.7.7 X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-12/txt/msg00349.txt.bz2 On 12/14/2011 2:32 PM, Andrew DeFaria wrote: > On 12/14/2011 12:14 PM, Buchbinder, Barry (NIH/NIAID) [E] wrote: >> Might CYGWIN=winsymlinks help? >> http://cygwin.com/cygwin-ug-net/using-cygwinenv.html > I don't see how. I think that I need the .lnk portion of the file. > It's not clear to me from that link's description that setting > winsymlinks gives me .lnk. > > Hmmm... Just tested. Ah yes! The winsymlinks seems to do the trick! > Thanks! >> More: >> http://cygwin.com/faq/faq-nochunks.html#faq.using.symlinkstoppedworking >> http://cygwin.com/faq/faq-nochunks.html#faq.api.symlinks >> > Thanks for the references... I'm not sure this is working as well as I had hoped (or remembered). I think the question boils down to, given a Unix symlink of say .bash_login and a Cygwin symlink of say .bash_login.lnk, which does Cygwin read when logging it? I would have hoped that Cygwin would always see the .lnk file whereas Unix would see the regular symlink. That's how I thought this worked before. But it doesn't seem to be working that way. In fact I see: $ ls -l .bash* -rw-r--r-- 1 adefaria clearusers 7179 Dec 15 15:35 .bash_history -rw-r--r-- 1 adefaria clearusers 29 Dec 15 14:36 .bash_login -rw-r--r-- 1 adefaria clearusers 29 Dec 15 14:36 .bash_login -rw-r--r-- 1 adefaria clearusers 29 Dec 15 14:36 .bashrc -rw-r--r-- 1 adefaria clearusers 29 Dec 15 14:36 .bashrc When I login bash see the Unix formated .bash_login symlink and chokes. I can remove this Unix symlink from the Unix side and log in with bash again and it works. If I remake the symlink on the Unix side it fails! :-( I don't remember this being a problem before. I fear this is a Samba config thing... Note: CYGWIN has winsymlinks in it... -- Andrew DeFaria Law of Probability Dispersal: Whatever it is that hits the fan will not be evenly distributed. -- 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