commit 12749fc72f486679f6ae0fafad46a477faa1c102
parent 3d492dddd91c7b83da49e6fc51cb9b880dc9ce4e
Author: Wolfgang Corcoran-Mathe <first.lord.of.teal@gmail.com>
Date: Tue, 30 Jun 2015 00:21:25 -0400
Fix pipeline in quick search script
The tr call to delete newlines should come before the query
string is hex encoded.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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 '\n' | tr ' ' '%')
+ s=$(printf %s "${q#* }" | tr -d '\n' | od -t x1 -An | tr ' ' '%')
# These are examples. Change as desired.
# 's' = startpage.com