Add default OPT_ERR and fix default OPT_TMPDIR.

This commit is contained in:
Daniel Nichter
2011-10-31 11:25:56 -06:00
parent f2b644ba72
commit 8cb5f6b600
2 changed files with 2 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ set -u
# sub will be scoped locally.
declare -a ARGV # non-option args (probably input files)
declare EXT_ARGV # everything after -- (args for an external command)
OPT_ERR=${OPT_ERR:""}
# Sub: usage
# Print usage (--help) and list the program's options.

View File

@@ -25,7 +25,7 @@ set -u
# Global variables.
TMPDIR=""
OPT_TMPDIR={OPT_TMPDIR:""}
OPT_TMPDIR=${OPT_TMPDIR:""}
# Sub: set_TMPDIR
# Create a secure tmpdir and set TMPDIR.