about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xxlocate2
1 files changed, 1 insertions, 1 deletions
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" |