diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2017-07-29 19:10:03 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2017-07-29 19:10:03 -0400 |
commit | b5ebe959cca84101795ec29022af5fcbcb94ed78 (patch) | |
tree | 532d2e799f52d14297d60f3f4543aa40e66c84e7 /tests | |
parent | 53612664740f3a31d93d2059f7d981da3ba565dc (diff) | |
download | bfs-b5ebe959cca84101795ec29022af5fcbcb94ed78.tar.xz |
exec: Don't allow anything between {} and +
POSIX explicitly forbids this extension:
> Only a <plus-sign> that immediately follows an argument containing
> only the two characters "{}" shall punctuate the end of the primary
> expression. Other uses of the <plus-sign> shall not be treated as
> special.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_exec_plus_semicolon.out | 19 | ||||
-rw-r--r-- | tests/test_exec_plus_substring.out | 1 | ||||
-rw-r--r-- | tests/test_execdir_plus_semicolon.out | 19 | ||||
-rw-r--r-- | tests/test_execdir_plus_substring.out | 11 |
4 files changed, 38 insertions, 12 deletions
diff --git a/tests/test_exec_plus_semicolon.out b/tests/test_exec_plus_semicolon.out new file mode 100644 index 0000000..27887e2 --- /dev/null +++ b/tests/test_exec_plus_semicolon.out @@ -0,0 +1,19 @@ ++ bar basic baz foo ++ bar basic/a baz foo ++ bar basic/b baz foo ++ bar basic/c baz foo ++ bar basic/e baz foo ++ bar basic/g baz foo ++ bar basic/i baz foo ++ bar basic/j baz foo ++ bar basic/k baz foo ++ bar basic/l baz foo ++ bar basic/c/d baz foo ++ bar basic/e/f baz foo ++ bar basic/g/h baz foo ++ bar basic/j/foo baz foo ++ bar basic/k/foo baz foo ++ bar basic/l/foo baz foo ++ bar basic/k/foo/bar baz foo ++ bar basic/l/foo/bar baz foo ++ bar basic/l/foo/bar/baz baz foo diff --git a/tests/test_exec_plus_substring.out b/tests/test_exec_plus_substring.out deleted file mode 100644 index 7e5bb34..0000000 --- a/tests/test_exec_plus_substring.out +++ /dev/null @@ -1 +0,0 @@ --basic- -basic/a- -basic/b- -basic/c- -basic/c/d- -basic/e- -basic/e/f- -basic/g- -basic/g/h- -basic/i- -basic/j- -basic/j/foo- -basic/k- -basic/k/foo- -basic/k/foo/bar- -basic/l- -basic/l/foo- -basic/l/foo/bar- -basic/l/foo/bar/baz- a z diff --git a/tests/test_execdir_plus_semicolon.out b/tests/test_execdir_plus_semicolon.out new file mode 100644 index 0000000..9acfc5d --- /dev/null +++ b/tests/test_execdir_plus_semicolon.out @@ -0,0 +1,19 @@ ++ ./a bar baz foo ++ ./b bar baz foo ++ ./bar bar baz foo ++ ./bar bar baz foo ++ ./basic bar baz foo ++ ./baz bar baz foo ++ ./c bar baz foo ++ ./d bar baz foo ++ ./e bar baz foo ++ ./f bar baz foo ++ ./foo bar baz foo ++ ./foo bar baz foo ++ ./foo bar baz foo ++ ./g bar baz foo ++ ./h bar baz foo ++ ./i bar baz foo ++ ./j bar baz foo ++ ./k bar baz foo ++ ./l bar baz foo diff --git a/tests/test_execdir_plus_substring.out b/tests/test_execdir_plus_substring.out deleted file mode 100644 index 838fbae..0000000 --- a/tests/test_execdir_plus_substring.out +++ /dev/null @@ -1,11 +0,0 @@ --./bar- a z --./bar- a z --./basic- a z --./baz- a z --./d- a z --./f- a z --./foo- a z --./foo- a z --./foo- a z --./h- a z --./a- -./b- -./c- -./e- -./g- -./i- -./j- -./k- -./l- a z |