It is possible to source from another script. If the
calling/sourcing script has any positional parameters set, those are
incorrectly accounted for in while sourcing it resulting in
the the help section always being shown. This patch updates the help
section advising the user about these set positional parameters so they
can be unset prior to sourcing

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Arvind Prasanna <>

Changes in v2:
- Fixed a typo.
- Minor rewording.
--- | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ b/
index 93d6525..e85fbf2 100755
--- a/
+++ b/
@@ -42,6 +42,8 @@ function HelpMsg()
   echo Please note: This script must be \'sourced\' so the environment can be 
   echo ". $SCRIPTNAME"
   echo "source $SCRIPTNAME"
+  echo "If this script is being sourced from another script, please ensure 
that the"
+  echo "sourcing script has no set positional parameters."
 function SetWorkspace()

edk2-devel mailing list

Reply via email to