Dr. Werner Fink 2013-05-24 12:57:26 +00:00 committed by Git OBS Bridge
parent d3c375f8ba
commit 4ac41ad6e9
2 changed files with 11 additions and 2 deletions

View File

@ -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

7
xim
View File

@ -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