]> git.plutz.net Git - clickslide/commitdiff
slight simplicity/speed regain in URL()
authorPaul Hänsch <paul@plutz.net>
Tue, 17 Jul 2018 01:31:37 +0000 (03:31 +0200)
committerPaul Hänsch <paul@plutz.net>
Tue, 17 Jul 2018 01:31:37 +0000 (03:31 +0200)
cgilite.sh

index 8859b44c380d13ad61b779775239aeeaabed606c..9420b46c18ce96672ac10a9281ac9bd6806e9151 100755 (executable)
@@ -170,7 +170,7 @@ URL(){
 
   printf %s "$*" \
   | hexdump -v -e '/1 ",%02X"' \
-  | tr , % |sed 's;%2F;/;g;'
+  | sed 's;,;%;g; s;%2F;/;g;'
 }
 
 PATH(){