Also correct check if $SSH_CONNECTION is set.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-set -e
+set -eu
. ../lib.sh
echo 'screenrc: running on virtual terminal, disabling 256 colors'
# Called through SSH connection, assume the local system supports 256
# colors.
- elif test -n "$SSH_CONNECTION"; then
+ elif test -n "${SSH_CONNECTION:+set}"; then
use_256colors=1
# We have rxvt-unicode installed, check if it supports 256 colors.
elif installed urxvt; then