From 8cb5f6b600638d15c3cdfa3027b2d726509f5759 Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Mon, 31 Oct 2011 11:25:56 -0600 Subject: [PATCH] Add default OPT_ERR and fix default OPT_TMPDIR. --- lib/bash/parse_options.sh | 1 + lib/bash/tmpdir.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/bash/parse_options.sh b/lib/bash/parse_options.sh index b94ea52b..037902c6 100644 --- a/lib/bash/parse_options.sh +++ b/lib/bash/parse_options.sh @@ -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. diff --git a/lib/bash/tmpdir.sh b/lib/bash/tmpdir.sh index 143ec1df..b0983f44 100644 --- a/lib/bash/tmpdir.sh +++ b/lib/bash/tmpdir.sh @@ -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.