Do an exact match for `search' subcommand in the @tag case as well - bookmarks.sh - Simple bookmark manager
 (HTM) hg clone https://bitbucket.org/iamleot/bookmarks.sh
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) changeset ac731b8f3fe335e3f0727d6f0ff928ee426679f2
 (DIR) parent abcdd5154ef89d37bfae02ca749a7ef0b5cee9bf
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Mon, 15 Jan 2018 22:19:05 
       
       Do an exact match for `search' subcommand in the @tag case as well
       
       Previously @tag* was searched instead of @tag. Split through the tags in order
       to avoid that.
       
       Diffstat:
        bookmarks.sh |  9 ++++++++-
        1 files changed, 8 insertions(+), 1 deletions(-)
       ---
       diff -r abcdd5154ef8 -r ac731b8f3fe3 bookmarks.sh
       --- a/bookmarks.sh      Mon Jan 08 02:32:40 2018 +0100
       +++ b/bookmarks.sh      Mon Jan 15 22:19:05 2018 +0100
       @@ -92,7 +92,14 @@
               case ${field} in
               @*)
                       # tag
       -               awk -vtag="${field}" -F '\t' 'index($3, tag) { print }' $_bookmarks
       +               awk -vtag="${field}" -F '\t' \
       +                   'index($3, tag) {
       +                       n = split($3, t, ",")
       +                       for (i = 1; i <= n; i++)
       +                               if (tag == t[i])
       +                                       print
       +                   }' \
       +                   $_bookmarks
                       ;;
               *://*)
                       # url