small fix
authorIan Kelling <ian@iankelling.org>
Tue, 11 Mar 2025 03:45:57 +0000 (23:45 -0400)
committerIan Kelling <ian@iankelling.org>
Tue, 11 Mar 2025 03:45:57 +0000 (23:45 -0400)
brc

diff --git a/brc b/brc
index aff932d17e918efe04a643917c025dc5a9ae655e..61acff4543c12d9d1f42af1b8195c6153435ab04 100644 (file)
--- a/brc
+++ b/brc
@@ -1920,8 +1920,8 @@ re() {
   query="$1"
   find "$@" -not \( -name .svn -prune -o -name .git -prune \
        -o -name .hg -prune -o -name .editor-backups -prune \
-       -o -name .undo-tree-history -prune \) 2>/dev/null | grep -iP --color=auto "$query"
-  grr -m 5 "$@"
+       -o -name .undo-tree-history -prune \) 2>/dev/null | grep -iP --color=auto "$query" ||:
+  grr -m 5 "$@" || return $?
 }
 
 # highlighted echo.