diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2020-11-26 21:47:31 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2020-11-28 11:33:18 -0500 |
commit | c7c8a03a3783cfeb342f033a7cac0dcbe948bbb9 (patch) | |
tree | d41b20ca530e8193b83d5046cb677c0bdd845649 /tests | |
parent | 457fcee54828527ee2a6819cac2b51892b673069 (diff) |
eval: Make -hidden behave consistently
Previously there was an unexpected difference between
$ bfs .hidden -hidden
and
$ bfs ./.hidden -hidden
./.hidden
The intent of the code was to avoid considering `.`, the default
starting point, as hidden and thus pruning a whole search with
-nohidden. Fix it to do that explicitly, and handle `..` too.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_hidden_root.out | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_hidden_root.out b/tests/test_hidden_root.out new file mode 100644 index 0000000..199ae5f --- /dev/null +++ b/tests/test_hidden_root.out @@ -0,0 +1,5 @@ +... +./... +./... +.../../... +././... |