Dump Initial Environment when tracing

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4225 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-07-16 15:17:53 +00:00
parent c25978f28a
commit 69d51a4b9c

View File

@ -8562,14 +8562,12 @@ usage() {
#
# Start trace if first arg is "debug"
#
[ $# -gt 1 ] && [ "$1" = "debug" ] && { set -x ; shift ; }
[ $# -gt 1 ] && [ "$1" = "debug" ] && { set -x ; shift ; env >&2; }
NOLOCK=
[ $# -gt 1 ] && [ "$1" = "nolock" ] && { NOLOCK=Yes; shift ; }
trap "exit 2" 1 2 3 4 5 6 9
COMMAND="$1"
case "$COMMAND" in