summary refs log tree commit diff
path: root/xlocate
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2014-10-02 13:31:25 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2014-10-10 16:44:40 +0200
commit8c7dc218f1fb73d00c25b0b802e75af12369086d (patch)
tree26d1a9d6f4ee1016b9c2727d4c80458c7d5e7b71 /xlocate
parent5d58f6d27b0ee4837afeb715cacd03f8a66e5c4e (diff)
downloadxtools-8c7dc218f1fb73d00c25b0b802e75af12369086d.tar.gz
xtools-8c7dc218f1fb73d00c25b0b802e75af12369086d.tar.xz
xtools-8c7dc218f1fb73d00c25b0b802e75af12369086d.zip
xlocate: fix for filenames with :
Diffstat (limited to 'xlocate')
-rwxr-xr-xxlocate2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlocate b/xlocate
index 63c2d9b..705cd34 100755
--- a/xlocate
+++ b/xlocate
@@ -1,4 +1,4 @@
 #!/bin/sh
 # xlocate PATTERN - locate files in all XBPS packages
 
-xbps-query --regex -Ro "$@" | sed 's/(http:.*)$//; s/-[^-]*:/\t/'
+xbps-query --regex -Ro "$@" | sed 's/ *([^)]*)$//; s/^\([^ ]*\)-[^-]*: /\1\t/'