Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

Commit 350ac55

Browse files
Merge branch 'master' into support-multiline-elements
* master: Allow environment variables to contain whitespace
2 parents dec92cc + 8e58a9b commit 350ac55

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

tests/run.bats

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,3 +314,11 @@ circleci-matrix() {
314314
echo "$nlout" | grep "_bracket: if-ok_"
315315
[ $(echo "$output" | grep 'bracket-start-comment' | wc -l) -eq 0 ]
316316
}
317+
318+
@test "should support spaces in single quoted variables" {
319+
circleci-matrix --config whitespace_support.yml | grep "^double quoted$"
320+
}
321+
322+
@test "should support spaces in double quoted variables" {
323+
circleci-matrix --config whitespace_support.yml | grep "^single quoted$"
324+
}

tests/whitespace_support.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
env:
2+
- VERSION="double quoted"
3+
- VERSION='single quoted'
4+
5+
command:
6+
- echo "$VERSION"

0 commit comments

Comments
 (0)