Browse files

fix bad 0 subscript in zsh array assignment (issue 14)

  • Loading branch information...
1 parent eeee862 commit 1a21c0d0d145de262f317509f3363fdd1fa6b37a @micha committed Mar 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 resty
View
2 resty
@@ -30,7 +30,7 @@ function resty() {
[ -n "$1" ] && [ "${1#/}" != "$1" ] \
&& _path=$(echo "$1"|sed 's/%/%25/g;s/\[/%5B/g;s/\]/%5D/g;s/|/%7C/g;s/\$/%24/g;s/&/%26/g;s/+/%2B/g;s/,/%2C/g;s/:/%3A/g;s/;/%3B/g;s/=/%3D/g;s/?/%3F/g;s/@/%40/g;s/ /%20/g;s/#/%23/g;s/{/%7B/g;s/}/%7D/g;s/\\/%5C/g;s/\^/%5E/g;s/~/%7E/g;s/`/%60/g') && shift
- j=0
+ j=1
for i in "$@"; do
([ "$i" = "--verbose" ] || echo "$i" | grep '^-[a-zA-Z]*v[a-zA-Z]*$' >/dev/null) \
&& verbose="yes" && continue

0 comments on commit 1a21c0d

Please sign in to comment.