public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Any downside to using winsymlinks over cygwin-style symlinks?
@ 2019-12-27 17:50 cygwin
  2019-12-28  1:01 ` Andrey Repin
  0 siblings, 1 reply; 3+ messages in thread
From: cygwin @ 2019-12-27 17:50 UTC (permalink / raw)
  To: cygwin

Based on the documentation and practical use of the Windows-style
symlinks (winsymlinks) vs Cygwin-style symlinks, it seems to me that:
1. Winsymlinks have the advantage of working as symlinks/shortcuts
   under both Cygwin and Windows Explorer while Cygwin links are
   recognized only in Cygwin

2. They both are basically text files with some MAGIC numbers and
   attributes that allow them to be interpreted as symlinks

So, is there any *disadvantage* to always using Winsymlinks and indeed
converting my old Cygwin-style links to Windows-style?

(Note: I can't use Windows Native symlinks because I don't have admin
privileges on all my machines)

Finally, where is the best place to set CYGWIN=winsymlinks?
In .bash_profile?

Thanks!
Jeff

--
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] 3+ messages in thread

* Re: Any downside to using winsymlinks over cygwin-style symlinks?
  2019-12-27 17:50 Any downside to using winsymlinks over cygwin-style symlinks? cygwin
@ 2019-12-28  1:01 ` Andrey Repin
  2019-12-29  5:11   ` cygwin
  0 siblings, 1 reply; 3+ messages in thread
From: Andrey Repin @ 2019-12-28  1:01 UTC (permalink / raw)
  To: Jeff, cygwin

Greetings, Jeff!

> Based on the documentation and practical use of the Windows-style
> symlinks (winsymlinks) vs Cygwin-style symlinks, it seems to me that:
> 1. Winsymlinks have the advantage of working as symlinks/shortcuts
>    under both Cygwin and Windows Explorer while Cygwin links are
>    recognized only in Cygwin

True.

> 2. They both are basically text files with some MAGIC numbers and
>    attributes that allow them to be interpreted as symlinks

NOT true.
Windows native symlinks are actual FS objects.

> So, is there any *disadvantage* to always using Winsymlinks and indeed
> converting my old Cygwin-style links to Windows-style?

You can't create native symlinks as a member of Administrators group, even if
your account have the needed privilege.

> (Note: I can't use Windows Native symlinks because I don't have admin
> privileges on all my machines)

Exactly.

> Finally, where is the best place to set CYGWIN=winsymlinks?
> In .bash_profile?

If you can't use them, there's no reason to set this option, if you expect
interoperability between Windows and Cygwin.

With just winsymlinks set, Cygwin will try to create native symlink,
but failing that, it will create regular Cygwin symlink.

With winsymlinks:nativestrict set, Cygwin will try to create native symlink
and report failure instead of creating Cygwin symlink.

P.S.
I'm using winsymlinks:nativestrict personally, but I know implications and
well prepared to deal with them.


-- 
With best regards,
Andrey Repin
Friday, December 27, 2019 21:04:24

Sorry for my terrible english...


--
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] 3+ messages in thread

* Re: Any downside to using winsymlinks over cygwin-style symlinks?
  2019-12-28  1:01 ` Andrey Repin
@ 2019-12-29  5:11   ` cygwin
  0 siblings, 0 replies; 3+ messages in thread
From: cygwin @ 2019-12-29  5:11 UTC (permalink / raw)
  To: cygwin; +Cc: Jeff

See comments inline
Andrey Repin wrote at about 21:11:55 +0300 on Friday, December 27, 2019:
 > Greetings, Jeff!
 > 
 > > Based on the documentation and practical use of the Windows-style
 > > symlinks (winsymlinks) vs Cygwin-style symlinks, it seems to me that:
 > > 1. Winsymlinks have the advantage of working as symlinks/shortcuts
 > >    under both Cygwin and Windows Explorer while Cygwin links are
 > >    recognized only in Cygwin
 > 
 > True.
 > 
 > > 2. They both are basically text files with some MAGIC numbers and
 > >    attributes that allow them to be interpreted as symlinks
 > 
 > NOT true.
 > Windows native symlinks are actual FS objects.
 CYGWIN=winsymlinks is the same as CYGWIN=winsymlinks:lnk
 This corresponds to Windows-style links, not native Windows symlinks.
 You are referring to CYGWIN=winsymlinks:native or
CYGWIN=winsymlinks:nativestrict which refers to the true FS object symlinks

> 
 > > So, is there any *disadvantage* to always using Winsymlinks and indeed
 > > converting my old Cygwin-style links to Windows-style?
 > 
 > You can't create native symlinks as a member of Administrators group, even if
 > your account have the needed privilege.

Again note the distinction between winsymlinks and winsymlinks:native
 > 
 > > (Note: I can't use Windows Native symlinks because I don't have admin
 > > privileges on all my machines)
 > 
 > Exactly.
 > 
 > > Finally, where is the best place to set CYGWIN=winsymlinks?
 > > In .bash_profile?
 > 
 > If you can't use them, there's no reason to set this option, if you expect
 > interoperability between Windows and Cygwin.

Again note the distinction between winsymlinks and winsymlinks:native
I was referring winsymlinks (or more pedantically winsymlinks:lnk)

 > With just winsymlinks set, Cygwin will try to create native symlink,
 > but failing that, it will create regular Cygwin symlink.
 > 
 > With winsymlinks:nativestrict set, Cygwin will try to create native symlink
 > and report failure instead of creating Cygwin symlink.
 > 
 > P.S.
 > I'm using winsymlinks:nativestrict personally, but I know implications and
 > well prepared to deal with them.
 > 
 > 
 > -- 
 > With best regards,
 > Andrey Repin
 > Friday, December 27, 2019 21:04:24
 > 
 > Sorry for my terrible english...
 > 

--
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] 3+ messages in thread

end of thread, other threads:[~2019-12-28 22:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-27 17:50 Any downside to using winsymlinks over cygwin-style symlinks? cygwin
2019-12-28  1:01 ` Andrey Repin
2019-12-29  5:11   ` 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).