[Assorted-commits] SF.net SVN: assorted:[1761] shell-tools/trunk/src/bash-commons/bashrc.bash
Brought to you by:
yangzhang
|
From: <yan...@us...> - 2011-02-25 04:46:13
|
Revision: 1761
http://assorted.svn.sourceforge.net/assorted/?rev=1761&view=rev
Author: yangzhang
Date: 2011-02-25 04:46:07 +0000 (Fri, 25 Feb 2011)
Log Message:
-----------
Fix NOKEYCHAIN boolean logic bug
Modified Paths:
--------------
shell-tools/trunk/src/bash-commons/bashrc.bash
Modified: shell-tools/trunk/src/bash-commons/bashrc.bash
===================================================================
--- shell-tools/trunk/src/bash-commons/bashrc.bash 2011-02-24 22:53:05 UTC (rev 1760)
+++ shell-tools/trunk/src/bash-commons/bashrc.bash 2011-02-25 04:46:07 UTC (rev 1761)
@@ -862,7 +862,7 @@
# -t 1 checks if fd 1 (stdout) is a terminal; if so then we're running
# interactively.
-if [[ "$PS1" && -t 1 || ${NOKEYCHAIN:-} ]]
+if [[ "$PS1" && -t 1 && ! ${NOKEYCHAIN:-} ]]
then keychain_flags=
else keychain_flags=--noask
fi
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|