[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Changes to /etc/profile



On 15-Jul-02, 04:44 (CDT), Santiago Vila <sanvila@unex.es> wrote: 
> I have already been asked not to export PS1:
> 
> -export PATH PS1
> +export PATH
> 
> so that shells which do not understand bash prompt escapes do not show
> a confusing prompt when invoked on the command line.

Why don't you just fix the real problem, and remove the bogus bits from
the distributed /etc/profile:

- if [ "$BASH" ]; then
-   PS1='\u@\h:\w\$ '
- else
  if [ "`id -u`" -eq 0 ]; then
    PS1='# '
  else
    PS1='$ '
  fi
- fi

/etc/profile is not bash specific. This kind of hack should be in
/etc/skel/.bash_profile.

Steve


-- 
Steve Greenland

    The irony is that Bill Gates claims to be making a stable operating
    system and Linus Torvalds claims to be trying to take over the
    world.       -- seen on the net


-- 
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: