File: excess-slash

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 (18 lines) | stat: -rwxr-xr-x 358 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# Ensure that no excess slash appears in diff -r output.

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

mkdir -p a/f b/f/g || framework_failure_
echo Only in b/f: g > expected-out || framework_failure_

fail=0

diff -r a b/ > out 2> err && fail=1

# expect no stderr
compare /dev/null err || fail=1

compare expected-out out || fail=1

Exit $fail