Capturing 'unbound variable' error
Hello,
In bash/sh environment I use 'set -u' to catch
unset variables.
I have:
envcfg=${EnvRootDir}/instance/env_path.cfg
.. ${envcfg} > ${errmsgs} 2>&1
Neither checking the value of $? nor redirecting
the output let me catch the 'unbound variable' error
produced by sourcing ${envcfg}
How do I catch the errors in above scenario?
Thanks,
Farid
|