This is the mail archive of the cygwin-developers 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]

Re: native symlink


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

  #!/bin/bash
  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

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]