commit 12749fc72f486679f6ae0fafad46a477faa1c102
Author: Wolfgang Corcoran-Mathe <[email protected]>
Date:   Tue Jun 30 00:21:25 2015 -0400

    Fix pipeline in quick search script
    
    The tr call to delete newlines should come before the query
    string is hex encoded.

diff --git a/surf.suckless.org/files/quick_search.md 
b/surf.suckless.org/files/quick_search.md
index 0cbd24c..fc2ad3b 100644
--- a/surf.suckless.org/files/quick_search.md
+++ b/surf.suckless.org/files/quick_search.md
@@ -61,7 +61,7 @@ Code
        # here, but xxd is part of vim packages on some systems, whereas od is
        # ubiquitous. A search script that breaks if someone accidentally 
removes
        # vim is stupid.
-       s=$(printf %s "${q#* }" | od -t x1 -An | tr -d '
' | tr ' ' '%')
+       s=$(printf %s "${q#* }" | tr -d '
' | od -t x1 -An |  tr ' ' '%')
 
        # These are examples. Change as desired.
        # 's' = startpage.com


Reply via email to