We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 21fa5bb + f469873 commit d4187bdCopy full SHA for d4187bd
t/perf/perf-lib.sh
@@ -148,13 +148,18 @@ test_run_perf_ () {
148
. '"$TEST_DIRECTORY"/test-lib-functions.sh'
149
test_export () {
150
[ $# != 0 ] || return 0
151
- test_export_="$test_export_\\|$1"
+ test_export_="$test_export_ $1"
152
shift
153
test_export "$@"
154
}
155
'"$1"'
156
ret=$?
157
-set | sed -n "s'"/'/'\\\\''/g"';s/^\\($test_export_\\)/export '"'&'"'/p" >test_vars
+needles=
158
+for v in $test_export_
159
+do
160
+ needles="$needles;s/^$v=/export $v=/p"
161
+done
162
+set | sed -n "s'"/'/'\\\\''/g"'$needles" >test_vars
163
exit $ret' >&3 2>&4
164
eval_ret=$?
165
0 commit comments