From 4ac41ad6e9e15d61dd80e4a6d8b937acf3db42317ee52e05df281961fe878075 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Fri, 24 May 2013 12:57:26 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/x11-tools?expand=0&rev=14 --- x11-tools.changes | 6 ++++++ xim | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/x11-tools.changes b/x11-tools.changes index 983db5f..25c1320 100644 --- a/x11-tools.changes +++ b/x11-tools.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri May 24 12:56:22 UTC 2013 - werner@suse.de + +- Some shells do not know about HOSTNAME variable and print error + messages therefore export this variable + ------------------------------------------------------------------- Wed Feb 27 06:18:01 UTC 2013 - coolo@suse.com diff --git a/xim b/xim index a6f96ea..ac279e3 100644 --- a/xim +++ b/xim @@ -62,10 +62,12 @@ echo "/etc/X11/xim: Checking whether an input method should be started." adduserenv () { local cur var=${1+"$@"} + : ${HOSTNAME:=$(hostname -f)} case "$SHELL" in */sh|*/ash|*/bash|*/ksh|*/pdksh|*/zsh) if test -s "$HOME/.profile" ; then - eval $((echo . "'$HOME/.profile'" + eval $(export HOSTNAME + (echo . "'$HOME/.profile'" echo "set +u +e" for cur in $var; do echo echo \${$cur+"export $cur=\$$cur;"} @@ -74,7 +76,8 @@ adduserenv () { ;; */csh|*/tcsh) if test -s "$HOME/.login" ; then - eval $((echo onintr - + eval $(export HOSTNAME + (echo onintr - echo source "'$HOME/.login'" echo unset verbose for cur in $var; do