Author s-wakaba
Recipients s-wakaba
Date 2015-10-09.07:23:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1444375437.08.0.147131311455.issue25351@psf.upfronthosting.co.za>
In-reply-to
Content
When writing bash shellscripts, I always set options "set -ueC" for strict error checking. However, loading pyvenv's activate and deactivate scripts from bash with "-u" option, they are failure because they may refer undefined shell variables.

I hope activate script and deactivate function are enclosed like following block

_OLD_BASH_OPTIONS="$-"
set +u

### script body ##

set -$_OLD_BASH_OPTIONS
unset _OLD_BASH_OPTIONS


Another option, all shell-variables in the script change like

$SPAM -> ${SPAM:-}
History
Date User Action Args
2015-10-09 07:23:57s-wakabasetrecipients: + s-wakaba
2015-10-09 07:23:57s-wakabasetmessageid: <1444375437.08.0.147131311455.issue25351@psf.upfronthosting.co.za>
2015-10-09 07:23:56s-wakabalinkissue25351 messages
2015-10-09 07:23:56s-wakabacreate