From: Michael D. Lowis Date: Wed, 7 Dec 2016 03:26:46 +0000 (-0500) Subject: fixed a bug in the xtagpick script where ex commands tht don't end with $ result... X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=c7c4bf72fd7ca4b53df2b75344ef2478213fdefb;p=projs%2Ftide.git fixed a bug in the xtagpick script where ex commands tht don't end with $ result in an invalid grep command --- diff --git a/xtagpick b/xtagpick index 74264f6..dbe515f 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" }