From 0f5caf14a3124c24f38f340fd6504532f07d9617 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 24 Dec 2018 14:19:47 -0500 Subject: ob_parse_dep(), ob_reduce_deps(): Initialize OPTIND before getopts Dash and BusyBox ash apparently do this themselves, but GNU Bash (and other shells?) don't. POSIX says that getopts can be used more than once if OPTIND is set to 1, but using getopts multiple times with different parameters without setting OPTIND to 1 "produces unspecified results". --- (limited to 'locale/en_US/libopkbuild_2.sh') -- cgit v0.9.1