www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/05/17:09:17

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
X-IronPortListener: Outbound_SMTP
From: "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder AT niaid DOT nih DOT gov>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Date: Fri, 5 Mar 2010 17:09:04 -0500
Subject: RE: symlinks: converting Windows shortcuts to cygwin style
Message-ID: <0105D5C1E0353146B1B222348B0411A208B5EEA1D1@NIHMLBX02.nih.gov>
References: <0105D5C1E0353146B1B222348B0411A208B5EEA1BC AT NIHMLBX02 DOT nih DOT gov> <20100305153256 DOT GL7980 AT calimero DOT vinschen DOT de>
In-Reply-To: <20100305153256.GL7980@calimero.vinschen.de>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Corinna Vinschen sent the following at Friday, March 05, 2010 10:33 AM
>On Mar 5 09:11, Buchbinder, Barry (NIH/NIAID) [E] wrote:
>> Does someone have a script that converts symbolic links from "Windows sh=
ortcuts with a special header and the R/O attribute set" to "plain files wi=
th a magic number, a path and the system attribute set".  (See "(no)winsyml=
inks" in <http://cygwin.com/cygwin-ug-net/using-cygwinenv.html>.)
>
>Something like that
>  for lnk in $(find . -xdev -type l)
>  do
>    tgt=3D$(readlink $lnk)
>    rm -f "$lnk"
>    ln -s "$tgt" "$lnk"
>  done

Thank you.

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019