RE: Can't set bash prompt

2006-05-26 Thread Jorge Peixoto
I have solved the problem by recreating the user's
account, but I still don't understand it, since the
.bashrc of the user was identical to mine... but well,
consider it solved.
--- David Christensen <[EMAIL PROTECTED]>
escreveu:

> Jorge Peixoto wrote:
> > One of the users of this machine has a wrong bash
> prompt. ...
> 
> If you're using Debian 3.1, take a look at
> /etc/profile.  I have a script
> "cvsenv" which sets up environment variables for CVS
> usage.  It also changes
> my Bash prompt (PS1).  On fresh installs of Debian
> 3.1, /etc/profile
> interferes with the later function and I have to
> adjust things (I set PS1 in
> ~/.bash_profile which takes care of login shells,
> and I comment out the PS1
> line in /etc/profile).
> 
> 
> HTH,
> 
> David
> 
> 
> -- 
> To UNSUBSCRIBE, email to
> [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]
> 
> 




___ 
Novo Yahoo! Messenger com voz: Instale agora e faça ligações de graça. 
http://br.messenger.yahoo.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



RE: Can't set bash prompt

2006-05-24 Thread David Christensen
Jorge Peixoto wrote:
> One of the users of this machine has a wrong bash prompt. ...

If you're using Debian 3.1, take a look at /etc/profile.  I have a script
"cvsenv" which sets up environment variables for CVS usage.  It also changes
my Bash prompt (PS1).  On fresh installs of Debian 3.1, /etc/profile
interferes with the later function and I have to adjust things (I set PS1 in
~/.bash_profile which takes care of login shells, and I comment out the PS1
line in /etc/profile).


HTH,

David


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Can't set bash prompt

2006-05-23 Thread s. keeling
Jorge Peixoto <[EMAIL PROTECTED]>:
>  One of the users of this machine has a wrong bash
>  prompt. It works well on a virtual console, but on
>  xterm or gnome-terminal, PS1 is set to \s-\v\$ , which
>  is very unhelpful. But this user's .bashrc is
>  identical to mine (as told by md5sum), and I don't
>  have this problem, so I don't know what to do. It is
>  also identical to /etc/skel/.bashrc.
>  I have tested xterm and gnome-terminal, executed from
>  the "Run application" command dialog, and they have
>  the same problem.
>  Sorry if this is a stupid question, but I googled
>  first. 

Doesn't sound stupid to me.  :-)

  echo $LANG

  echo $PS1

on both accounts.  Are both of these login shells (cf. "xterm -ls
..."), are they both running Bash?

Lots of recent distros set up login config files brokenly.  Are you
sure the config that's defining PS1 is being run?  Is gnome-terminal
told to run as a login shell, thereby invoking login scripts?  That's
not the default in my experience.


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)http://www.spots.ab.ca/~keeling   Linux Counter #80292
- -Spammers! http://www.spots.ab.ca/~keeling/emails.html
   http://www.ietf.org/rfc/rfc1855.txt


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]