Re: Cygwin and symlink
On 19 September 2010 11:39, Andy Koppe wrote: > On 19 September 2010 11:26, Angelo Graziosi wrote: >> I remember that some time ago (don't when, sigh!) if I had >> >> $ ln -sf foo.pdf slnk_foo.pdf >> >> I was able to read 'slnk_foo.pdf' double clicking on its icon from Explorer >> or 'Computer Resources'. Now AR complains and I can't read it. >> >> Is this to be expected? > > Yep. They're just UTF-16 text files with special attributes now. > >> BTW, I remember also that the icon of 'slnk_foo.pdf' had the symbol of a >> link (like an 'arrow'), now it is as other PDF files icon. >> >> When there was the 'transmutation'? :-) > > Cygwin 1.7. Set CYGWIN=winsymlinks to switch to the old behaviour. See > also http://www.cygwin.com/cygwin-ug-net/using-cygwinenv.html. > > Or use a hard link instead of a symlink. Or, if you're on Vista or 7, > create a native Windows symlink using cmd.exe's mklink builtin (which > you can call from bash using 'cmd /c mklink'). ps: mkshortcut from cygutils is yet another option if you just want an Explorer shortcut, but that won't be treated as a symlink by Cygwin. Andy -- 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
Re: Cygwin and symlink
On 19 September 2010 11:26, Angelo Graziosi wrote: > I remember that some time ago (don't when, sigh!) if I had > > $ ln -sf foo.pdf slnk_foo.pdf > > I was able to read 'slnk_foo.pdf' double clicking on its icon from Explorer > or 'Computer Resources'. Now AR complains and I can't read it. > > Is this to be expected? Yep. They're just UTF-16 text files with special attributes now. > BTW, I remember also that the icon of 'slnk_foo.pdf' had the symbol of a > link (like an 'arrow'), now it is as other PDF files icon. > > When there was the 'transmutation'? :-) Cygwin 1.7. Set CYGWIN=winsymlinks to switch to the old behaviour. See also http://www.cygwin.com/cygwin-ug-net/using-cygwinenv.html. Or use a hard link instead of a symlink. Or, if you're on Vista or 7, create a native Windows symlink using cmd.exe's mklink builtin (which you can call from bash using 'cmd /c mklink'). Andy -- 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
Cygwin and symlink
I remember that some time ago (don't when, sigh!) if I had $ ln -sf foo.pdf slnk_foo.pdf I was able to read 'slnk_foo.pdf' double clicking on its icon from Explorer or 'Computer Resources'. Now AR complains and I can't read it. Is this to be expected? BTW, I remember also that the icon of 'slnk_foo.pdf' had the symbol of a link (like an 'arrow'), now it is as other PDF files icon. When there was the 'transmutation'? :-) Thanks, Angelo. -- 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