]> git.corax.cc Git - toolbox/commit
include/opt: Work around bug in old bash versions
authorMatthias Kruk <matthias.kruk@miraclelinux.com>
Thu, 20 May 2021 00:55:14 +0000 (09:55 +0900)
committerMatthias Kruk <matthias.kruk@miraclelinux.com>
Thu, 20 May 2021 00:55:14 +0000 (09:55 +0900)
commitdde498a9a1a6bec031d2fb136282f4af66e766c4
tree17697676f82aa2b8e79feaf64dbcd098de2269c5
parent5a43d0816fdd5b8f78fa28af3d323c3cc35116cf
include/opt: Work around bug in old bash versions

Declaring a non-local array and initializing it in the same statement
causes it to become local in older bash versions. This commit works
around this bug by removing the array initializations from internal
arrays of the opt module.
include/opt.sh