LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 04-25-2004, 09:11 AM   #1
freeindy
Member
 
Registered: Nov 2002
Posts: 196

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


Hi!

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?

thanks

Indy
 
Old 04-25-2004, 09:27 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
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, 09:46 AM   #3
freeindy
Member
 
Registered: Nov 2002
Posts: 196

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

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

indy

Last edited by freeindy; 04-25-2004 at 09:55 AM.
 
Old 04-25-2004, 10:14 AM   #4
-Nw- neX
Member
 
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 10:20 AM.
 
Old 04-25-2004, 10:58 AM   #5
freeindy
Member
 
Registered: Nov 2002
Posts: 196

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

indy
 
  


Reply


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 07:18 PM
dvorak layout = can't use bash functions with xterm elconde Linux - General 2 03-14-2004 05:35 PM
Bash Prompts with xterm-style terminals somnium Linux - General 1 09-11-2003 08:43 AM
Difference between bash and xterm krackerroot Red Hat 4 09-08-2003 10:32 AM
file progress in xterm titlebar with bash brian0918 Linux - Newbie 3 06-11-2003 06:04 PM


All times are GMT -5. The time now is 10:35 AM.

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