[Bash-completion-commits] [bash-completion] 01/02: (testsuite) Use 'set' command posix behaviour when saving env (Alioth: #314720)

Ville Skyttä scop-guest at moszumanska.debian.org
Tue Jul 1 19:24:35 UTC 2014


This is an automated email from the git hooks/post-receive script.

scop-guest pushed a commit to branch master
in repository bash-completion.

commit 16361c873ba04d941c56c7e6a3fbe8d446f07ca7
Author: Damien Nadé <alioth at livna.org>
Date:   Sat Jun 14 00:06:13 2014 +0200

    (testsuite) Use 'set' command posix behaviour 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 75bf921..4ec0e69 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; declare -F; shopt -p; } > \"$file\""
+    assert_bash_exec "{ (set -o posix ; set); declare -F; shopt -p; } > \"$file\""
 }
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git



More information about the Bash-completion-commits mailing list