From dbb93ae77ba6613d89081b9592fb3714b604476c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 1 Jul 2014 22:23:35 +0300 Subject: [PATCH] (testsuite) Save shell variables when saving env (Alioth: #314720) --- test/lib/library.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/library.exp b/test/lib/library.exp index 4ec0e697..6d2ff41c 100644 --- a/test/lib/library.exp +++ b/test/lib/library.exp @@ -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 -o posix ; set); declare -F; shopt -p; } > \"$file\"" + assert_bash_exec "{ (set -o posix ; set); declare -F; shopt -p; set -o; } > \"$file\"" }