File: ignore-case

package info (click to toggle)
diffutils 1%3A3.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,980 kB
  • sloc: ansic: 116,841; sh: 12,881; perl: 535; makefile: 233; sed: 16
file content (26 lines) | stat: -rwxr-xr-x 482 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
# Test ignoring case

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

fail=0

printf 'Funky Stuff\n' >a
printf 'fUNKy stuFf\n' >b

diff -i a b >out || fail=1
compare /dev/null out || fail=1

require_utf8_locale_

echo 'AĀȀΆΑАӐḀἈA𐐀-Δ' >a
echo 'aāȁάαаӑḁἀa𐐨-δ' >b

diff -i a b >out || fail=1
compare /dev/null out || fail=1

mkdir d || framework_failure_
touch f d/F || framework_failure_
diff --ignore-file-name-case f d || fail=1

Exit $fail