8bae53a41476e02828d916d3980cc3b8e3eb8032
[grml-etc-core.git] / urldecode
1 #f5# RFC 2396 URL encoding in Z-Shell
2 emulate -L zsh
3
4 setopt extendedglob
5 input=( ${(s::)1} )
6 print ${(j::)input/(#b)([^A-Za-z0-9_.!~*\'\(\)-])/%${(l:2::0:)$(([##16]#match))}}