parse_options: initialize unused_options as array
commit969dcddbdf9d5dbd91aa414cdd193f3fb26b644b
authorDave Reisner <dreisner@archlinux.org>
Tue, 20 Mar 2012 13:02:56 +0000 (20 09:02 -0400)
committerDan McGee <dan@archlinux.org>
Sat, 7 Apr 2012 15:13:37 +0000 (7 10:13 -0500)
tree6d4cf6e2c2d8b2af12d86643a2cce04211b803c3
parent72ba4fb83ff99031f58169beeb1daa80ffd8cdb4
parse_options: initialize unused_options as array

Since we treat this as an array, we need to initialize it as one. This
avoids addition of an empty element to the option string when we set the
option array from the calling program, e.g.

  +/usr/bin/makepkg[2033]: set -- -i --pkg vim -- ''

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
scripts/library/parse_options.sh