From fd7f3b85514b3aca17afda51ff0ee22937388451 Mon Sep 17 00:00:00 2001 From: Anish Athalye Date: Tue, 12 May 2015 20:04:42 -0400 Subject: Add environment variable expansion in link paths This feature was proposed by Brian Knobbs . --- ...link-environment-variable-expansion-target.bash | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 test/tests/link-environment-variable-expansion-target.bash (limited to 'test/tests/link-environment-variable-expansion-target.bash') diff --git a/test/tests/link-environment-variable-expansion-target.bash b/test/tests/link-environment-variable-expansion-target.bash new file mode 100644 index 0000000..3a2e4dd --- /dev/null +++ b/test/tests/link-environment-variable-expansion-target.bash @@ -0,0 +1,25 @@ +test_description='link expands environment variables in target' +. '../test-lib.bash' + +test_expect_success 'setup' ' +echo "apple" > ${DOTFILES}/f && +echo "grape" > ${DOTFILES}/h +' + +test_expect_success 'run' ' +export ORANGE=".config" && +export BANANA="g" && +unset PEAR && +run_dotbot <