about summary refs log tree commit diff
path: root/xgrep
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-02-12 21:18:15 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2015-02-12 21:18:15 +0100
commite22ff893e9696a92318682cbf4401fb84f56be78 (patch)
tree80987c0ac72ac91ccd554ada953b89b6bdf993eb /xgrep
parent844374fb0f6f1e3b7f3a322e02fdbcde184502ae (diff)
downloadxtools-e22ff893e9696a92318682cbf4401fb84f56be78.tar.gz
xtools-e22ff893e9696a92318682cbf4401fb84f56be78.tar.xz
xtools-e22ff893e9696a92318682cbf4401fb84f56be78.zip
xgrep: fix for spaces in filenames and grep with only one argument.
Diffstat (limited to 'xgrep')
-rwxr-xr-xxgrep2
1 files changed, 1 insertions, 1 deletions
diff --git a/xgrep b/xgrep
index 3e9359e..c2cbe7a 100755
--- a/xgrep
+++ b/xgrep
@@ -6,4 +6,4 @@ shift
 
 for pkg; do
 	xbps-query -f "$pkg"
-done | sed 's/ -> .*//' | xargs grep -d skip -e "$PATTERN"
+done | sed 's/ -> .*//' | xargs -d'\n' grep -H -d skip -e "$PATTERN"