[wiki] [sites] Fix pipeline in quick search script || Wolfgang Corcoran-Mathe

From: <git_AT_suckless.org>
Date: Tue, 30 Jun 2015 06:26:13 +0200

commit 12749fc72f486679f6ae0fafad46a477faa1c102
Author: Wolfgang Corcoran-Mathe <first.lord.of.teal_AT_gmail.com>
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
_AT_@ -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
Received on Tue Jun 30 2015 - 06:26:13 CEST

This archive was generated by hypermail 2.3.0 : Tue Jun 30 2015 - 06:36:18 CEST