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 8859b44..9420b46 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(){