Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: rfc2396 url encoding



> urlencode() {
>     setopt localoptions extendedglob
>     input=( ${(s::)1} )
>     print ${(j::)input/(#b)([^A-Za-z0-9_.!~*\'\(\)-])/%$(([##16]#match))}
> }

Beautiful.



Messages sorted by: Reverse Date, Date, Thread, Author