[Surfraw-commits] [SCM] surfraw - a fast unix command line interface to WWW branch, master, updated. surfraw_2-2-5_1-183-g331d9f1

Ian Beckwith ianb at erislabs.net
Thu May 12 02:16:10 UTC 2011


The following commit has been merged in the master branch:
commit 331d9f17b8f7027192b9b8fc5e28a928487e2b35
Author: Ian Beckwith <ianb at erislabs.net>
Date:   Thu May 12 03:15:14 2011 +0100

    surfraw.IN: bookmark names: do exact match not substring match.

diff --git a/ChangeLog b/ChangeLog
index e568645..2043518 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,7 +4,9 @@
 
 2011-05-12  Ian Beckwith  <ianb at erislabs.net>
 
-	* surfraw.IN: if elvi doesn't exist, send usage to stderr not stdout.
+	* surfraw.IN:
+	  + if elvi doesn't exist, send usage to stderr not stdout.
+	  + bookmark names: do exact match not substring match.
 	* Added tests for archwiki, deli & stack.
 	* README:
 	  + added INTEGRATION section on uzbl and pentadactyl.
diff --git a/surfraw.IN b/surfraw.IN
index a2616df..dedf369 100755
--- a/surfraw.IN
+++ b/surfraw.IN
@@ -169,7 +169,7 @@ bookmark_file_search () {
 	file="$2"
 	if [ -r "$file" ]
 	then
-		@AWK@ -v search="$search" '$1 ~ search { print $2; }'  $file | head -n 1
+		@AWK@ -v search="$search" '$1 == search { print $2; }'  $file | head -n 1
 	fi
 }
 

-- 
surfraw -  a fast unix command line interface to WWW



More information about the Surfraw-commits mailing list