(testsuite) Use 'set' command posix behaviour when saving env (Alioth: #314720)
This commit is contained in:
parent
4bbab196cb
commit
16361c873b
@ -846,7 +846,7 @@ proc save_env {{file ""}} {
|
|||||||
# @param string File to save the environment to. Default is "$TESTDIR/tmp/env1~".
|
# @param string File to save the environment to. Default is "$TESTDIR/tmp/env1~".
|
||||||
# @see assert_env_unmodified()
|
# @see assert_env_unmodified()
|
||||||
proc _save_env {{file ""}} {
|
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\""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user