bash_ini_parser icon indicating copy to clipboard operation
bash_ini_parser copied to clipboard

Executon fails with set -o errexit

Open crowtrobot opened this issue 11 years ago • 1 comments

In a script with "set -o errexit" the read_ini will fail. As a work-around, turn off errexit before using read_ini:

set +o errexit
read_ini ~/.script.ini
set -o errexit 

crowtrobot avatar Nov 02 '14 20:11 crowtrobot

Oh, actually looks like set -o unset also causes problems. Work-around with this: set +o errexit ; set +o nounset read_ini ~/.script.ini set -o errexit ; set -o nounset

crowtrobot avatar Nov 02 '14 20:11 crowtrobot