Homework 03: zipcode.sh
This commit is contained in:
parent
2eec09590f
commit
690be1e029
1 changed files with 4 additions and 4 deletions
|
|
@ -40,14 +40,14 @@ while [ $# -gt 0 ]; do
|
|||
case $1 in
|
||||
-s)
|
||||
shift
|
||||
STATE=()
|
||||
STATE=""
|
||||
while [ $# -gt 0 ] && [ "${1#-}" = "$1" ]; do
|
||||
STATE+=("$1")
|
||||
STATE+="$1"
|
||||
shift
|
||||
done
|
||||
|
||||
STATE="${STATE[*]}"
|
||||
STATE="${STATE// /%20}"
|
||||
STATE=${STATE[*]}
|
||||
STATE=${STATE// /%20}
|
||||
;;
|
||||
-c)
|
||||
shift
|
||||
|
|
|
|||
Loading…
Reference in a new issue