From c7c8a03a3783cfeb342f033a7cac0dcbe948bbb9 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 26 Nov 2020 21:47:31 -0500 Subject: 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. --- tests/test_hidden_root.out | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/test_hidden_root.out (limited to 'tests/test_hidden_root.out') 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 @@ +... +./... +./... +.../../... +././... -- cgit v1.2.3