From: Michael D. Lowis Date: Mon, 5 Dec 2016 19:30:37 +0000 (-0500) Subject: grep doesnt seem to handle crlf line endings so strip the $ off ctags lookups before... X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=60a569a6e925bf8c8fff5f84407e3096117412dd;p=projs%2Ftide.git grep doesnt seem to handle crlf line endings so strip the $ off ctags lookups before executing grep --- diff --git a/xtagpick b/xtagpick index 712bff8..74264f6 100755 --- a/xtagpick +++ b/xtagpick @@ -21,7 +21,7 @@ BEGIN { FS = "[\t]+" } ($1 == TAG) { matchstr = $3 sub(/^\//, "\"", matchstr) - sub(/\/;"$/, "\"", matchstr) + sub(/\$\/;"$/, "\"", matchstr) gsub(/\*/, "\\*", matchstr) print "grep -Hn", matchstr, $2, "| cut -d: -f1,2" }