]> git.corax.cc Git - toolbox/commit
include/opt: Fix C-ish statement
authorMatthias Kruk <matthias.kruk@miraclelinux.com>
Thu, 20 May 2021 00:58:31 +0000 (09:58 +0900)
committerMatthias Kruk <matthias.kruk@miraclelinux.com>
Thu, 20 May 2021 00:58:31 +0000 (09:58 +0900)
commit33ce6ef8b7358833b0afceddc20d877332f1c297
tree8e01660d74c333def4712ae949e516ae45ab5c8e
parentdde498a9a1a6bec031d2fb136282f4af66e766c4
include/opt: Fix C-ish statement

The statement used to store the length of the longest option name in
opt_add_arg() looks very C-like, meaning it doesn't work correctly in
bash. This commit changes the statement to proper shell syntax.
include/opt.sh