From 43c86554458ce4498ab94acb70e4779e465e0ca2 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Fri, 6 Aug 2021 09:30:06 +0100 Subject: fix: Remove double newline from bash envnames This doesn't materially change behaviour because words split the same but it's unintentional and against the described behaviour. --- share/bash/template/template.sh.tera | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') diff --git a/share/bash/template/template.sh.tera b/share/bash/template/template.sh.tera index 0e67c4e..6ee88f5 100644 --- a/share/bash/template/template.sh.tera +++ b/share/bash/template/template.sh.tera @@ -158,7 +158,7 @@ scenario_{{ loop.index }}() { # contains newlines. envnames() { - env -0 | sed -z 's/^\([^=]\+\)=.*$/\1\n/' | tr '\0' '\n' + env -0 | sed -z 's/^\([^=]\+\)=.*$/\1/' | tr '\0' '\n' } # Unset all environment variables. At the beginning of each scenario, -- cgit v1.2.1