File: colliding-file-names

package info (click to toggle)
diffutils 1%3A3.10-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 15,784 kB
  • sloc: ansic: 90,222; sh: 11,672; perl: 450; makefile: 225; sed: 16
file content (19 lines) | stat: -rwxr-xr-x 358 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# Check that diff responds well if a directory has multiple file names
# that compare equal.

. "${srcdir=.}/init.sh"; path_prepend_ ../src

mkdir d1 d2 || fail=1

for i in abc abC aBc aBC; do
 echo xyz >d1/$i || fail=1
done

for i in ABC ABc AbC Abc; do
 echo xyz >d2/$i || fail=1
done

diff -r --ignore-file-name-case d1 d2 || fail=1

Exit $fail