From 758bb619e8631be1773cbecb4226580c83a41651 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 29 Jul 2017 21:09:30 -0400 Subject: exec: Fix more corner cases with -ok ... + -ok should look for a ; even if it sees {} +, according to POSIX. --- tests/test_ok_plus_semicolon.out | 19 +++++++++++++++++++ tests/test_okdir_plus_semicolon.out | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 tests/test_ok_plus_semicolon.out create mode 100644 tests/test_okdir_plus_semicolon.out (limited to 'tests') diff --git a/tests/test_ok_plus_semicolon.out b/tests/test_ok_plus_semicolon.out new file mode 100644 index 0000000..85d27e5 --- /dev/null +++ b/tests/test_ok_plus_semicolon.out @@ -0,0 +1,19 @@ +basic + +basic/a + +basic/b + +basic/c + +basic/e + +basic/g + +basic/i + +basic/j + +basic/k + +basic/l + +basic/c/d + +basic/e/f + +basic/g/h + +basic/j/foo + +basic/k/foo + +basic/l/foo + +basic/k/foo/bar + +basic/l/foo/bar + +basic/l/foo/bar/baz + diff --git a/tests/test_okdir_plus_semicolon.out b/tests/test_okdir_plus_semicolon.out new file mode 100644 index 0000000..1909d27 --- /dev/null +++ b/tests/test_okdir_plus_semicolon.out @@ -0,0 +1,19 @@ +./a + +./b + +./bar + +./bar + +./basic + +./baz + +./c + +./d + +./e + +./f + +./foo + +./foo + +./foo + +./g + +./h + +./i + +./j + +./k + +./l + -- cgit v1.2.3