X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=ltATGZehhnLYE1tr
	AKJnoTJNcL57sCmrRZ8L0P/0Rt3NJAbO+qBI2QbUizkz0NskWH5MITeeAra9VcXX
	ExCLnYUaZUjiESpLh+0MjQf9gMJa7x5kTZPLmhcQxy2OfZZRW1D0n6CxhsoR4uAg
	MhEojPn3MxGWlQBwP0DRM0l0Q4w=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=53NTK9XaoHz+h1xO2as/sr
	Dhvyc=; b=Xi4vw+CwpL1tq1JcIK5h62c+dfMUKXKK26W7+zIa61CMMrYoK1nLQg
	3TLtt5dGMkaEeiOF4LCPs0u2EWbGzcVDB4h+IMTt3Y6crpkgS2dFFMYZEDxsj40c
	ELNZ3yr0i3JJtaVpwVx7pvQvhg0vhyHqxZdSTiy8fhhtmG8PLeBpo=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=AWL,BAYES_20,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=Portable, H*MI:sk:WH2VU8f, H*MI:sk:CAPTiy3, H*i:sk:WH2VU8f
X-HELO: mail.imbrian.org
Subject: Re: `CYGWIN=winsymlinks:nativestrict`, `ln -s target link` fails if target doesn't exist
To: cygwin@cygwin.com
References: <CAPTiy3NUXprQL6V0+Njc2L7XfhpqtC7oWFwNMhOEFZ2OZmddoQ@mail.gmail.com> <1606116423.20160429020650@yandex.ru> <CAPTiy3OhkvWhGKCisnoLBFZqTL1_Rcq4-vdn0U8Qfnxk+WsX-A@mail.gmail.com> <5580e7fc-e227-d9d8-a186-b58c8b17cfa3@lysator.liu.se> <CAPTiy3MvtHccWMTcsd3hrgPr3zGDgedZWrcOHpu-Gj+jyaZ8wg@mail.gmail.com> <206e8a55-a830-fb27-76e1-dfe4c47ac51f@imbrian.org> <CAPTiy3O6Cq0SsJQzA4Nbj+WH2VU8f8JhhwH3AKD30mCeoc9Gow@mail.gmail.com>
From: Rinrin <rinrin@imbrian.org>
Message-ID: <fd70df5c-4ffb-0b0c-27bb-87c3d10aa978@imbrian.org>
Date: Fri, 7 Oct 2016 10:06:11 +0800
MIME-Version: 1.0
In-Reply-To: <CAPTiy3O6Cq0SsJQzA4Nbj+WH2VU8f8JhhwH3AKD30mCeoc9Gow@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes

在 2016/10/6 18:14, Gene Pavlovsky 写道:
> On 5 October 2016 at 06:00, Rinrin <rinrin@imbrian.org> wrote:
>> Hi Gene:
>>   I made a patch for my private use.
>>   First of all, you should setup `nativenocheck` in CYGWIN environment
>> variable to enable this feature.
>>   If the target does not exist, it will check the last digit of target
>> path, for '/' it will create a <SYMLINKD> instead of <SYMLINK>
> 
> Hi Rinrin.
> I'd like to try it out, is your patch included in mainline Cygwin?
> If not, how can I get a version with that patch?
> Thanks.
> --Gene
I posted compiled version here.
http://www.megafileupload.com/kgm0/cygwin1.zip

This version contains another patch ripped from msys.
When cygwin process call non-cygwin executable, like mingw binary,
it will translate cygwin path format to windows format.

For example:
/mingw64/usr/bin $ iconv --help
Usage: C:\Portable\PrivData\cygwin\mingw64\usr\bin\iconv.exe [OPTION...]
[-f ENCODING] [-t ENCODING] [INPUTFILE...]
or:    C:\Portable\PrivData\cygwin\mingw64\usr\bin\iconv.exe -l

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

