Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-25-2004, 10:11 AM   #1
Registered: Nov 2002
Posts: 206

Rep: Reputation: 32
xterm start with sh instead of bash


when i start xterm/aterm it shows "sh-2.05$" . but i want it to start bash because i'm use to it and all path variables are set in .bashrc.

does anyone know how to change it?


Old 04-25-2004, 10:27 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
is that also what you get when you log in to a console outside of X? sounds like your shell has changed somehow... either use chsh or usermod to change your sh, or edit /etc/passwd to change it directly.
Old 04-25-2004, 10:46 AM   #3
Registered: Nov 2002
Posts: 206

Original Poster
Rep: Reputation: 32
thanks mate. that worked perfectly in xterm but not outside X. do you know why?

strange... it works in xterm but not in aterm ???


Last edited by freeindy; 04-25-2004 at 10:55 AM.
Old 04-25-2004, 11:14 AM   #4
-Nw- neX
Registered: Apr 2004
Distribution: Gentoo, RHL, CentOS, Ubuntu, FreeBSD,
Posts: 88

Rep: Reputation: 15
i dont remember precisely, but theres a variable called PROMPT [or something similar] that you can set in your login scripts that will fix this. you might also want to check what your TERM is set to, if its something wierd, just reset in your login files [ex: TERM=xterm].

EDIT: sh2.05 is actually bash. bash is now the default sh for most distros that i can think of offhand.

Last edited by -Nw- neX; 04-25-2004 at 11:20 AM.
Old 04-25-2004, 11:58 AM   #5
Registered: Nov 2002
Posts: 206

Original Poster
Rep: Reputation: 32
TERM was set to rxvt. i changed it to xterm but i can't find anthing related to PROMPT except in .bashrc which is:
PROMPT_COMMAND='echo -ne "\033];${PWD}\007"
but this for showing pwd as title on xterm/aterm



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
taking off the bash-3xx of the XTerm maginotjr Slackware 3 10-05-2005 08:18 PM
dvorak layout = can't use bash functions with xterm elconde Linux - General 2 03-14-2004 06:35 PM
Bash Prompts with xterm-style terminals somnium Linux - General 1 09-11-2003 09:43 AM
Difference between bash and xterm krackerroot Red Hat 4 09-08-2003 11:32 AM
file progress in xterm titlebar with bash brian0918 Linux - Newbie 3 06-11-2003 07:04 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:27 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration