* Cygwin vs. Native Symlinks
@ 2019-04-01 12:39 KARL BOTTS
2019-04-01 13:31 ` Corinna Vinschen
0 siblings, 1 reply; 2+ messages in thread
From: KARL BOTTS @ 2019-04-01 12:39 UTC (permalink / raw)
To: cygwin
Corinna said:
> ... Which lets symlinking with nativestrict fail. "winsymlinks:native"
> will work, albeit creating a Cygwin symlink then.
I use "winsymlinks:native". Is there a tool or method with which I can
create a Cygwin symlink by force? (I doubt I would actually want to:
I just want to know if I can, and to test behavior of a Cygwin symlink.)
Is there a tool which will tell me whether a given symlink is Cygwin or
native?
(The output of both readlink and symlinks looks the same, regardless.)
---
Karl Botts, kdbotts@usa.net
--
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] 2+ messages in thread
* Re: Cygwin vs. Native Symlinks
2019-04-01 12:39 Cygwin vs. Native Symlinks KARL BOTTS
@ 2019-04-01 13:31 ` Corinna Vinschen
0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2019-04-01 13:31 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 1134 bytes --]
On Apr 1 07:39, KARL BOTTS wrote:
>
> Corinna said:
>
> > ... Which lets symlinking with nativestrict fail. "winsymlinks:native"
> > will work, albeit creating a Cygwin symlink then.
>
>
> I use "winsymlinks:native". Is there a tool or method with which I can
> create a Cygwin symlink by force?
$ CYGWIN="" ln -s ...
> (I doubt I would actually want to:
Depends on if creating a symlink to a non-existant target is important
in your scenarios. Just run with "winsymlinks:nativestrict" for a while
to find out.
> I just want to know if I can, and to test behavior of a Cygwin symlink.)
>
> Is there a tool which will tell me whether a given symlink is Cygwin or
> native?
Not a single tool, but a few simple checks:
- `ls -l' shows a symlink
- `attrib /l' shows the S bit being set (cygwin symlink) or not
- `cmd /c dir' will not show a cygwin symlink as symlink
> (The output of both readlink and symlinks looks the same, regardless.)
That's the idea of a transparent POSIX layer, the API hiding
the implementation details :)
Corinna
--
Corinna Vinschen
Cygwin Maintainer
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-04-01 13:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-01 12:39 Cygwin vs. Native Symlinks KARL BOTTS
2019-04-01 13:31 ` Corinna Vinschen
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).