fedora
Absolute container application root pathShell evaluates variable command
SHA-256ba17699cec22b6ddb561ba9b617cf4c3a6d3002de7c2d8578284dc8ba710aa6c
MaleculeH₂(F₂Po₂)
Evidence
1#!/bin/sh
2
3. "${srcdir=.}/init.sh"; path_prepend_ ../src
4
5# GREP Regression test suite for Fedora bugs and fixes
6# (c) 2008 Lubomir Rintel
7# Licensed under the same terms as GNU Grep itself
8
9if [ -t 1 ]
⋯8 lines
39:35… _bug.cgi?id=123362
40printf 'bad handling of brackets in UTF-8: '
41echo Y > 123362.out
42echo Y | LC_ALL=de_DE.UTF-8 grep -i '[y,Y]' > actual || fail
43compare 123362.out actual && ok || fail
44
45U=https://bugzilla.redhat.com/show_bug.cgi?id=112869
46printf 'crash with \\W: '
47echo '<form>' > 112869.out
48LANG=it_IT grep -iE '\Wform\W' 112869.out > actual || fail
49compare 112869.out actual && ok || fail
50
51if ( timeout --version ) > …
62:37… les: '
63 returns_ 124 timeout 10 grep -F grep "$abs_top_builddir/src/grep" \
64 > /dev/null && fail || ok
65
66fi
67
68U=https://bugzilla.redhat.com/show_bug.cgi?id=161700
69printf 'grep -Fw fails to match anything: '
70echo test > 161700.out
71grep -Fw test 161700.out > actual || fail
72compare 161700.out actual && ok || fail
73
74U=https://bugzilla.redhat.com/show_bug.cgi?i …
95:45… d=324781
96printf 'bad handling of line breaks with grep -P #1: '
97printf 'a\na' | grep -P '[^a]' >/dev/null && fail || ok
98
99# This is mostly a check that fix for above doesn't break -P further
100printf '%s' "bad handling of line breaks with grep -P #2: "
101printf 'a\na' | grep -P '[^b].[^b]' >/dev/null && fail || ok
102
103Exit $failures