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

Ian Beckwith ianb at erislabs.net
Fri Jun 17 19:15:34 UTC 2011


The following commit has been merged in the master branch:
commit e13c21363b8623ed70a97574ec4123ce9ef8df70
Author: Ian Beckwith <ianb at erislabs.net>
Date:   Fri Jun 17 20:15:03 2011 +0100

    arxiv: fix -scope=author with single-word queries.

diff --git a/AUTHORS b/AUTHORS
index 8d05e5d..7186dfd 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -140,5 +140,6 @@ Philip Armstrong       <phil at kantaka.co.uk>
 Dan Jacobson           <jidanni at jidanni.org>
 Sunil Nimmagadda       <sunil at devio.us>
 Michel                 <synth17+deb-bugs at gmail.com>
+Nikos Apostolakis      <nikos.ap at gmail.com>
 
 If we've missed anyone, let us know.
diff --git a/ChangeLog b/ChangeLog
index e99f07b..3ca4e88 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-06-17  Ian Beckwith  <ianb at erislabs.net>
+
+	* arxiv: fix -scope=author with single-word queries.
+	  Thanks to Nikos Apostolakis.
+	* btw, note about entry below, netbsd make *does*
+	  support '$<', but only in suffix rules.
+
 2011-06-16  Ian Beckwith  <ianb at erislabs.net>
 
 	* Fix more make(1) portability problems.
diff --git a/NEWS b/NEWS
index 6d814d3..8cce9d6 100644
--- a/NEWS
+++ b/NEWS
@@ -55,7 +55,7 @@ Tue Jun 14 05:02:11 BST 2011  - surfraw 2.2.8
 	    to search both wikipedia and deletionpedia.
 	    use -fallback=wikipedia|deletionpedia to customise
 	    behaviour.
-	* Fixed elvi: archpkg, codesearch, ctan, javasun,
+	* Fixed elvi: archpkg, arxiv, codesearch, ctan, javasun,
 	  lastfm, musicbrainz, rpmsearch, w3link, yahoo.
 	* Removed elvi:
 	  + altavista: is now just a front-end to yahoo. RIP.
diff --git a/elvi/arxiv b/elvi/arxiv
index 855ba5d..44f5fa9 100755
--- a/elvi/arxiv
+++ b/elvi/arxiv
@@ -94,7 +94,11 @@ if [ ! -z "$w3_args" ]; then
 			last=$n
 		    fi
 		done
-		terms=$last"_"$first
+		terms=""
+		if [ -n "$last" ]; then
+		    terms="${last}_"
+		fi
+		terms="$terms$first"
 		terms="+"`w3_url_of_arg $terms`
 	    fi
 	    ;;

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



More information about the Surfraw-commits mailing list