From 74bb5d9b00e345038303d7dea9846b5087acaba8 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sun, 16 Aug 2020 22:53:50 +0200 Subject: xlocate: fix argument passing to xbps-query --regex -Ro Due to ERE, this also works if the argument starts with ^!. Fixes #193. --- xlocate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlocate b/xlocate index 231b276..49b6ac5 100755 --- a/xlocate +++ b/xlocate @@ -82,6 +82,6 @@ if [ -d "$XLOCATE_GIT" ]; then sed 's/^@://; s/:/\t/' | grep . else echo "xlocate: database not found, using xbps-query." 1>&2 - xbps-query --regex -Ro -- "$@" | + xbps-query --regex -Ro '.*'"$@" | sed 's/ *([^)]*)$//; s/^\([^ ]*\)-[^-]*: /\1\t/' fi -- cgit 1.4.1