diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2017-11-05 11:02:27 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2017-11-05 11:02:27 -0500 |
commit | 7f8bacca4c2b1d35bb65ddf8cbf70fadf1adf66e (patch) | |
tree | 54d1ba2f4f1cbe4a4465b87053bf229909a500c9 /tests.sh | |
parent | 3c02f3290804acedfc922ae82ce2a3aca5ca2ec7 (diff) | |
download | bfs-7f8bacca4c2b1d35bb65ddf8cbf70fadf1adf66e.tar.xz |
parse: Support -perm +7777, for compatibility with BSD and old GNU find
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -263,6 +263,8 @@ bsd_tests=( test_uid_name test_mnewer test_H_mnewer + test_perm_222_plus + test_perm_644_plus test_size_T test_quit test_quit_child @@ -389,7 +391,6 @@ bfs_tests=( test_perm_symbolic_double_comma test_perm_symbolic_missing_action test_perm_leading_plus_symbolic - test_perm_octal_plus test_execdir_plus test_hidden test_nohidden @@ -1000,6 +1001,10 @@ function test_perm_222_slash() { bfs_diff perms -perm /222 } +function test_perm_222_plus() { + bfs_diff perms -perm +222 +} + function test_perm_644() { bfs_diff perms -perm 644 } @@ -1012,6 +1017,10 @@ function test_perm_644_slash() { bfs_diff perms -perm /644 } +function test_perm_644_plus() { + bfs_diff perms -perm +644 +} + function test_perm_symbolic() { bfs_diff perms -perm a+r,u=wX,g+wX-w } @@ -1048,10 +1057,6 @@ function test_perm_leading_plus_symbolic_slash() { bfs_diff perms -perm /+rwx } -function test_perm_octal_plus() { - ! invoke_bfs perms -perm +777 2>/dev/null -} - function test_permcopy() { bfs_diff perms -perm u+rw,g+u-w,o=g } |