You are not logged in.

#1 2012-05-03 08:16:00

mariourk
Member
From: Urk, the Netherlands
Registered: 2007-10-10
Posts: 17

Weird error when logging in [solved]

Everytime I log into a freshly installed Arch, I get this error:

-bash: $'\337\376\032\274up_write': command not found

I do get a working prompt and everything seems to work just fine. But it bothers me that apparently something isn't right and I can't figure out what it is?

Anyone knows where this error comes from?

Last edited by mariourk (2012-05-03 10:14:42)


Always be wary of any helpful item that weighs less than its operating manual.

Offline

#2 2012-05-03 08:26:11

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Weird error when logging in [solved]

What do you have in your ~/.bashrc and ~/.bash_profile?


Burninate!

Offline

#3 2012-05-03 08:47:30

mariourk
Member
From: Urk, the Netherlands
Registered: 2007-10-10
Posts: 17

Re: Weird error when logging in [solved]

.bashrc

#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

.bash_profile

#
# ~/.bash_profile
#

[[ -f ~/.bashrc ]] && . ~/.bashrc

I doubt it's in these files, because I have this error regardless as what user I login (currently only as a regular user and root). But of cource I could be wrong.


Always be wary of any helpful item that weighs less than its operating manual.

Offline

#4 2012-05-03 09:22:48

Atragor
Member
Registered: 2009-02-28
Posts: 59

Re: Weird error when logging in [solved]

Try to insert

set -x

at the beginning of /etc/profile (after the first line). This should give much more verbose information about things happening during login.

Offline

#5 2012-05-03 09:32:21

mariourk
Member
From: Urk, the Netherlands
Registered: 2007-10-10
Posts: 17

Re: Weird error when logging in [solved]

Apperantly the error is caused by /etc/profile.d/gpm.sh

+ for profile in '/etc/profile.d/*.sh'
+ test -r /etc/profile.d/gpm.sh
+ . /etc/profile.d/gpm.sh
++ $'\337\376\032\274up_write'
-bash: $'\337\376\032\274up_write': command not found

/etc/profile.d/gpm.sh seems to contain some sort of binairy code?

^Zup_write^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@୵adown_write^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@

What is the function of /etc/profile.d/gpm.sh? Can I just delete it?


Always be wary of any helpful item that weighs less than its operating manual.

Offline

#6 2012-05-03 10:14:20

mariourk
Member
From: Urk, the Netherlands
Registered: 2007-10-10
Posts: 17

Re: Weird error when logging in [solved]

Reinstalling gpm made the error disappear. Also, /etc/profile.d/gpm.sh now shows something sane

case $( /usr/bin/tty ) in
    /dev/tty[0-9]*) [ -n "$(pgrep gpm)" ] && /usr/bin/disable-paste ;;
esac

I have no idea what went wrong here, but it seems to fixed.

Thanks!


Always be wary of any helpful item that weighs less than its operating manual.

Offline

Board footer

Powered by FluxBB