about summary refs log tree commit diff
path: root/tests/search.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/search.sh')
-rw-r--r--tests/search.sh10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/search.sh b/tests/search.sh
index 53a69a0bb01c..d83427247d3e 100644
--- a/tests/search.sh
+++ b/tests/search.sh
@@ -33,10 +33,6 @@ clearCache
 ## Search expressions
 
 # Check that empty search string matches all
-EMPTY=$(nix search)
-BOL=$(nix search "^")
-ALL=$(nix search ".*")
-
-diff <(printf "%s" $EMPTY) <(printf "%s" $BOL)
-# "ALL" highlights differently, not sure preferred behavior
-# diff <(printf "%s" $EMPTY) <(printf "%s" $ALL)
+nix search|grep -q foo
+nix search|grep -q bar
+nix search|grep -q hello