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

Reply via email to