biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / text / patchutils / Revert-Fix-grepdiff-test.patch
blob434378a219ac4ef4a21e74771a9ffd5131e3e5ea
1 From 13672e53371ea9593130bdca178f3b8b2e174032 Mon Sep 17 00:00:00 2001
2 From: Alyssa Ross <hi@alyssa.is>
3 Date: Thu, 25 Apr 2024 09:10:54 +0200
4 Subject: [PATCH] Revert "Fix grepdiff test"
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 This reverts commit a6538753a51db973a05c9034ed78f2dd946453db.
11 There's no need for an escape here, because POSIX regexes don't treat
12 '+' specially if it's at the start of the experssion. musl rejects
13 the version with the backslash.
15 I'm still not clear why this change was made in the first place, but
16 reverting it seems to make the test pass on both glibc and musl…
18 Link: https://github.com/twaugh/patchutils/issues/61
19 ---
20 tests/grepdiff1/run-test | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
23 diff --git a/tests/grepdiff1/run-test b/tests/grepdiff1/run-test
24 index c4311f8..c3cebdd 100755
25 --- a/tests/grepdiff1/run-test
26 +++ b/tests/grepdiff1/run-test
27 @@ -20,7 +20,7 @@ cat << EOF > diff
29 EOF
31 -${GREPDIFF} '\+a' diff 2>errors >index || exit 1
32 +${GREPDIFF} '+a' diff 2>errors >index || exit 1
33 [ -s errors ] && exit 1
35 cat << EOF | cmp - index || exit 1
36 --
37 2.44.0