Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: rfc2396 url encoding
- X-seq: zsh-users 9654
- From: Clint Adams <clint@xxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: rfc2396 url encoding
- Date: Sun, 6 Nov 2005 14:56:38 -0500
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <1051106194911.ZM32000@xxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20051106185713.GA11612@xxxxxxxxxxx> <1051106194911.ZM32000@xxxxxxxxxxxxxxxxxxxxxxx>
> 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