LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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: 207

Rep: Reputation: 32
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,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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: 207

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

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: 207

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:
Code:
PROMPT_COMMAND='echo -ne "\033];${PWD}\007"
but this for showing pwd as title on xterm/aterm

indy
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:31 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration