native symlink

Corinna Vinschen
Mon May 13 15:39:00 GMT 2013

On May 13 11:12, Charles Wilson wrote:
> On 5/13/2013 11:00 AM, Corinna Vinschen wrote:
> >On Apr 26 16:39, James Gregurich wrote:
> >>I had one of my guys test the work this morning. The creation of
> >>symlinks works fine. Did you implement a utility that can convert an
> >>existing cygwin symlink to native form?
> >
> >This can easily be accomplished by a script, utilizing readlink(1) and
> >ln(1).
> Well, if the he wants to convert to a *native* link, then he'd use
> winln(1) from cygutils rather than ln(1).

Why?  What speaks against

  tgt=$(readlink "$1")
  rm "$1" && CYGWIN=winsymlinks:native ln -s "${tgt}" "$1"


> But the larger point
> remains: this conversion can be done from a script.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

More information about the Cygwin-developers mailing list