From 2ad7c73e5bcfd2bccbb4ce7e65d822519bf8569f Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Wed, 18 Apr 2007 16:37:44 -0500 Subject: [svn-r13687] Improvement. Added a clarification the environment variables dumping is BEFORE command option parsing. Also added a dumping AFTER the option parsing. Tested: Just eyeballed since it is trival. Let daily tests runs to test it. --- bin/snapshot | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/bin/snapshot b/bin/snapshot index 5d5c4d6..e1c1f32 100755 --- a/bin/snapshot +++ b/bin/snapshot @@ -53,10 +53,10 @@ uname -a # setup exit banner message trap EXIT_BANNER 0 -# Dump environment variables -echo ===Dumping environment variables=== +# Dump environment variables before option parsing +echo ===Dumping environment variables before option parsing === printenv | sort -echo ===Done Dumping environment variables=== +echo ===Done Dumping environment variables before option parsing === # snapshots release directory. Default relative to $BASEDIR. ReleaseDir_default=release_dir @@ -222,6 +222,11 @@ while [ $# -gt 0 ] ; do shift done +# Dump environment variables after option parsing +echo ===Dumping environment variables after option parsing === +printenv | sort +echo ===Done Dumping environment variables after option parsing === + if [ "$cmd" = help ]; then set - cat <