diff --git a/.gitignore b/.gitignore index 5a1b4f1..bf77c8f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ diagnostic.test tests/*.diff spec/ spec-runner/ +demo/sourcing.vars diff --git a/demo/sourcing b/demo/sourcing new file mode 100755 index 0000000..01cfb6a --- /dev/null +++ b/demo/sourcing @@ -0,0 +1,18 @@ +#!/bin/bash +# +# This sources a simple script with the env. variables needed for the template. + +cd "$(dirname "$0")" # Go to the script's directory + +cat <sourcing.vars +export NAME="Alex" +export ARRAY=( AAA BBB CCC ) +EOF + +cat <