X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 352F23939C0D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1588135932;
	bh=Nek257PmY+poZcTlcDDChXO7bIO6sbGfeAh9QguRRCg=;
	h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=SDgitSo+Z80yjZHQBEgk31JriqWjQCbS+ipII1g0JEZpyPgj6iqVTLSoJPLAQF6jK
	 6gR5FaakeFLFav27GbSuyDE8quyV5NrLA0oXPORqK71ra8n/x/AweidejHhtHg2rq4
	 OTB8v8lvbUezPcMaFw44/Q0tMoH2BcwcEQpNL0J0=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CE8CF3939C08
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-transfer-encoding;
 bh=F+YS5QsseYE0KFe/4gScViVLugO8gGgh9GSh0Qwd/tc=;
 b=O4tMNJJ2KARzWxSt8wEDsOeHQnlNVMBMjhkisTdCGDoiizsRNU6LzLneHCzKYvKT3G
 oQjHC9mx8V0vYwSLhKG0gGUr9S4szhaeQGF/A+pGaUDSGLSejCgJZr9JnYL5nX50vOiT
 W/stN3Lb7yDWaIkvHNQYWEHF3joBbudgy43butkv2FzPXGH+bLJVim4U7AKl3HdcYemI
 6KckLquC7+9earwkzb+9VEiDBAuAJZ6lSP9FT44xjvmY6b1O6Rce2KMusANpXEMnthGI
 1FwUQ5iCQEmO8OkV+tQu2mUG29OYc0iF2yTQkvoNqgOqv5zWqvu1o8GrihPOKP6xvzcp
 9KVQ==
X-Gm-Message-State: AGi0PuYfE9ulgzMjCnsfM/cKjTyklXCeTJZLyhLlc/AfCvuxjc5wF0kg
 uzxU/rClw0njianVaCNrBS8883MI
X-Google-Smtp-Source: APiQypJCyo5n0YwVf6pJMovIOBcWzETp8o0MSWnX3Io6sRclERxB6mWeBbA7wdq4aHxiX4FIcDmhGA==
X-Received: by 2002:a5d:4443:: with SMTP id x3mr36122533wrr.162.1588135928598; 
 Tue, 28 Apr 2020 21:52:08 -0700 (PDT)
Subject: Re: patch command incorrectly capitalizes filenames that live on
 external USB flash drives
To: cygwin@cygwin.com
References: <CAKObCaoqPMb6ebbivTcKpWvF_ADhb1HNFgkkD3mpW6nARD4hWQ@mail.gmail.com>
Message-ID: <e99231bc-59d5-29fa-f3f0-232fdfab26f3@gmail.com>
Date: Wed, 29 Apr 2020 06:52:03 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
 Thunderbird/68.7.0
MIME-Version: 1.0
In-Reply-To: <CAKObCaoqPMb6ebbivTcKpWvF_ADhb1HNFgkkD3mpW6nARD4hWQ@mail.gmail.com>
X-Spam-Status: No, score=-17.3 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0,
 GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,
 SPF_PASS, TXREP, USB_DRIVES autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Marco Atzeri via Cygwin <cygwin@cygwin.com>
Reply-To: Marco Atzeri <marco.atzeri@gmail.com>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

Am 28.04.2020 um 21:27 schrieb Jason Gross via Cygwin:
> Consider the following script in foo.sh:
> ```
> #!/usr/bin/env bash
> 
> set -ex
> 
> cd "$1"
> rm -rf foo
> mkdir foo
> cd foo
> cat > Makefile <<EOF
> a
> b
> c
> d
> e
> EOF
> cat > diff <<EOF
> diff --git a/Makefile b/Makefile
> index 9405325..86d2f8c 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1,5 +1,5 @@
>   a
>   b
> -c
> +ccc
>   d
>   e
> EOF
> patch -p1 -i ./diff
> ls
> ```
> 
> If I run `./foo.sh /cygdrive/c/`, I get, as expected,
> ```
> + cd /cygdrive/c/
> + rm -rf foo
> + mkdir foo
> + cd foo
> + cat
> + cat
> + patch -p1 -i ./diff
> patching file Makefile
> + ls
> diff  Makefile
> ```
> 
> If I instead run `./foo.sh /cygdrive/h/`, I get
> ```
> + cd /cygdrive/h/
> + rm -rf foo
> + mkdir foo
> + cd foo
> + cat
> + cat
> + patch -p1 -i ./diff
> patching file Makefile
> + ls
> diff  MAKEFILE
> ```
> 
> My C drive is an internal SSD (NTFS), my H drive is an external flash
> drive (FAT32).  I installed cygwin with the commands:


use a flash driver with NTFS and check the difference

I doubt it is a patch issue
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
