From 217e2f73ac923ec28f41ef44609380a8ecca0f74 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sat, 1 Aug 2015 15:04:24 +0200 Subject: xlocate: detect ^ and $ as regexp too. --- xlocate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlocate') diff --git a/xlocate b/xlocate index c031086..e34bda3 100755 --- a/xlocate +++ b/xlocate @@ -22,7 +22,7 @@ if [ -e "$XLOCATE_DB" ]; then rx= case "$1" in # Just . is unlikely to be a regex here... - *[*+\\\[\]]*) rx=-r;; + *[*+\\\[\]^$]*) rx=-r;; esac # XXX also matches template in package name. locate $rx -d "$XLOCATE_DB" "$1" | -- cgit 1.4.1