diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2020-06-07 16:37:53 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2020-06-07 16:42:55 -0400 |
commit | 8896f35294649975c1df22a8b57db4333cc56091 (patch) | |
tree | 10eb0664f70cdc1d837a4f469d720149042dc8f9 /tests.sh | |
parent | a9f97adf92f8000a198de2c48132ba4a39ed1d5c (diff) | |
download | bfs-8896f35294649975c1df22a8b57db4333cc56091.tar.xz |
parse: Prohibit actions inside -exclude
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -601,6 +601,7 @@ bfs_tests=( test_exclude_name test_exclude_depth test_exclude_mindepth + test_exclude_print # Primaries @@ -2653,6 +2654,10 @@ function test_exclude_mindepth() { bfs_diff basic -mindepth 3 -exclude -name foo } +function test_exclude_print() { + ! invoke_bfs basic -exclude -print 2>/dev/null +} + BOL= EOL='\n' |