Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Is zsh buggy in connection with screen?



On Tue, Nov 08, 2005 at 09:44:11AM -0800, Wayne Davison wrote:
> My update script looks like this (yeah, it's ugly, but it works):

Actually, it had a bug in it early in the output (which changed
recently).  This has prompted me to make it less horrific:

#!/bin/zsh
for var in SSH_AUTH_SOCK SSH_AGENT_PID DISPLAY WINDOWID SSH_TTY SSH_CLIENT SSH_CONNECTION SESSION_MANAGER; do
    if [[ -n "${(P)var}" ]]; then
	echo "export $var=${(P)var}"
    else
	echo "unset $var"
    fi
done >~/.screenenv

..wayne..



Messages sorted by: Reverse Date, Date, Thread, Author