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] |
Hi Corinna, Below is what I get: RS-I9E3U8R4:[~/tmp/test_symlink]>uname -a CYGWIN_NT-6.1 RS-I9E3U8R4 1.7.29(0.272/5/3) 2014-04-07 13:46 x86_64 Cygwin RS-I9E3U8R4:[~/tmp/test_symlink]>echo $CYGWIN winsymlinks:nativestrict RS-I9E3U8R4:[~/tmp/test_symlink]>echo test > test.txt RS-I9E3U8R4:[~/tmp/test_symlink]>mkdir dest RS-I9E3U8R4:[~/tmp/test_symlink]>cd dest RS-I9E3U8R4:[~/tmp/test_symlink/dest]>ln -s ../test.txt test.txt RS-I9E3U8R4:[~/tmp/test_symlink/dest]>cd ../ RS-I9E3U8R4:[~/tmp/test_symlink]>mkdir src RS-I9E3U8R4:[~/tmp/test_symlink]>cd src RS-I9E3U8R4:[~/tmp/test_symlink/src]>ln -s ../dest dest RS-I9E3U8R4:[~/tmp/test_symlink/src]>cd ../ RS-I9E3U8R4:[~/tmp/test_symlink]>cat src/dest/test.txt cat: src/dest/test.txt: No such file or directory My Windows edition: Windows 7 Enterprise, Service Pack 1, 64-bit operating system. cygcheck output is attached for your reference. Robert -----Original Message----- From: Robert Bu Sent: 2014/4/16 11:34 +0800 > I can't reproduce this. It works fine for me in bash, tcsh, and even > in CMD.exe under Cygwin 1.7.29. > > > Corinna > > -----Original Message----- > From: Robert Bu > Sent: 2014/4/15 9:07 +0800 >> > Hi, >> > >> > It seems that cygwin cannot follow the Windows native symlink correctly. >> > set CYGWIN=winsymlinks:nativestrict >> > >> > Steps to re-produce: >> > 1. echo test > test.txt >> > 2. mkdir dest >> > 3. cd dest >> > 4. ln -s ../test.txt test.txt >> > 5. cd .. >> > 6. mkdir src >> > 7. cd src >> > 8. ln -s ../dest dest >> > 9. cd .. >> > 10. cat src/dest/test.txt >> > cat cannot find the file of "test.txt". >> > >> > The directory structure: >> > . >> > ├─test.txt >> > ├─dest/ >> > └─test >> > └─src/ >> > └─dest/ >> > >> > If I set CYGWIN=winsymlinks:lnk, all works fine for the above steps. >> > This is a simplified case of a problem when using repo/git. >> >
Attachment:
cygcheck.out
Description: cygcheck.out
-- 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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |