Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: rfc2396 url encoding
- X-seq: zsh-users 9653
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Clint Adams <clint@xxxxxxx>, zsh-users@xxxxxxxxxx
- Subject: Re: rfc2396 url encoding
- Date: Sun, 06 Nov 2005 19:49:11 +0000
- In-reply-to: <20051106185713.GA11612@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20051106185713.GA11612@xxxxxxxxxxx>
On Nov 6, 1:57pm, Clint Adams wrote:
}
} Anyone have a way of doing this better?
urlencode() {
setopt localoptions extendedglob
input=( ${(s::)1} )
print ${(j::)input/(#b)([^A-Za-z0-9_.!~*\'\(\)-])/%$(([##16]#match))}
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author