Re: [PATCH v2] test: add "set -u" to test-lib.sh

2016-06-27 Thread Tomi Ollila
On Mon, Jun 27 2016, David Bremner wrote: > Tomi Ollila writes: > >> This prohibits unset variables to expand to empty strings. >> Without this e.g misspelled variables cause unintentional results. >> >> Now all the test variables are either initialized, or in case of >> optional arguments and u

Re: [PATCH v2] test: add "set -u" to test-lib.sh

2016-06-27 Thread David Bremner
Tomi Ollila writes: > This prohibits unset variables to expand to empty strings. > Without this e.g misspelled variables cause unintentional results. > > Now all the test variables are either initialized, or in case of > optional arguments and user-provided environment variables (i.e. > when it i

[PATCH v2] test: add "set -u" to test-lib.sh

2016-06-07 Thread Tomi Ollila
This prohibits unset variables to expand to empty strings. Without this e.g misspelled variables cause unintentional results. Now all the test variables are either initialized, or in case of optional arguments and user-provided environment variables (i.e. when it is not know whethet the variable i