Afficher un message
Vieux 16/05/2007, 20h26   #1
Farid Hamjavar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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

  Réponse avec citation
 
Page generated in 0,04466 seconds with 9 queries