Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 1a21c0d0d145de262f317509f3363fdd1fa6b37a 1 parent eeee862
Micha Niskin authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  resty
2  resty
@@ -30,7 +30,7 @@ function resty() {
30 30 [ -n "$1" ] && [ "${1#/}" != "$1" ] \
31 31 && _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
32 32
33   - j=0
  33 + j=1
34 34 for i in "$@"; do
35 35 ([ "$i" = "--verbose" ] || echo "$i" | grep '^-[a-zA-Z]*v[a-zA-Z]*$' >/dev/null) \
36 36 && verbose="yes" && continue

0 comments on commit 1a21c0d

Please sign in to comment.
Something went wrong with that request. Please try again.