summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-08-01 15:04:24 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2015-08-01 15:04:24 +0200
commit217e2f73ac923ec28f41ef44609380a8ecca0f74 (patch)
treec35969ec1961dffeeb3453078c35648121586393
parentb12fe3753accb530f563372364a00d10a7a8c3db (diff)
downloadxtools-217e2f73ac923ec28f41ef44609380a8ecca0f74.tar.gz
xtools-217e2f73ac923ec28f41ef44609380a8ecca0f74.tar.xz
xtools-217e2f73ac923ec28f41ef44609380a8ecca0f74.zip
xlocate: detect ^ and $ as regexp too.
-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" |