SSH Notes
John Morrison
john.r.morrison@ntlworld.com
Fri Oct 4 10:59:00 GMT 2002
On Fri, 4 Oct 2002, Alexander Gottwald wrote:
> SuSE has a similar thing in their default .profile
Is that /etc/profile or ~/.bash_profile?
> if test -z "$DISPLAY" -a "$TERM" = "xterm" -a -x /usr/bin/who ; then
> WHOAMI="`/usr/bin/who am i`"
> _DISPLAY="`expr "$WHOAMI" : '.*(\([^\.][^\.]*\).*)'`:0.0"
> if [ "${_DISPLAY}" != ":0:0.0" -a "${_DISPLAY}" != " :0.0" \
> -a "${_DISPLAY}" != ":0.0" ]; then
> export DISPLAY="${_DISPLAY}";
> fi
> unset WHOAMI _DISPLAY
> fi
>
> And there are a lot of cases where this does not work and you search a
> long time for error.
So, not something folks would like me to add to /etc/profile?
J.
More information about the Cygwin-xfree
mailing list