(testsuite) Use 'set' command posix behaviour when saving env (Alioth: #314720)

This commit is contained in:
Damien Nadé 2014-06-14 00:06:13 +02:00 committed by Ville Skyttä
parent 4bbab196cb
commit 16361c873b

View File

@ -846,7 +846,7 @@ proc save_env {{file ""}} {
# @param string File to save the environment to. Default is "$TESTDIR/tmp/env1~".
# @see assert_env_unmodified()
proc _save_env {{file ""}} {
assert_bash_exec "{ set; declare -F; shopt -p; } > \"$file\""
assert_bash_exec "{ (set -o posix ; set); declare -F; shopt -p; } > \"$file\""
}