Debian Codegraph @

tests/backslash-dot

raw
1 #! /bin/sh
2 # This once failed to match: echo . | grep '\.'
3 #
4 # Copyright (C) 2020-2025 Free Software Foundation, Inc.
5 #
6 # Copying and distribution of this file, with or without modification,
7 # are permitted in any medium without royalty provided the copyright
8 # notice and this notice are preserved.
9
10 . "${srcdir=.}/init.sh"; path_prepend_ ../src
11
12 fail=0
13
14 echo . > in || framework_failure_
15
16 grep '\.' in > out 2> err || fail=1
17 compare in out || fail=1
18 compare /dev/null err || fail=1
19
20 Exit $fail