diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2015-08-01 15:04:24 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2015-08-01 15:04:24 +0200 |
commit | 217e2f73ac923ec28f41ef44609380a8ecca0f74 (patch) | |
tree | c35969ec1961dffeeb3453078c35648121586393 /xlocate | |
parent | b12fe3753accb530f563372364a00d10a7a8c3db (diff) | |
download | xtools-217e2f73ac923ec28f41ef44609380a8ecca0f74.tar.gz xtools-217e2f73ac923ec28f41ef44609380a8ecca0f74.tar.xz xtools-217e2f73ac923ec28f41ef44609380a8ecca0f74.zip |
xlocate: detect ^ and $ as regexp too.
Diffstat (limited to 'xlocate')
-rwxr-xr-x | xlocate | 2 |
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" | |