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

Bug#443245: root's .bashrc PS1 setting defeats debian_chroot

reassign 443245 base-files

Ian Jackson <ian@davenant.greenend.org.uk> writes:

> Package: rootskel
> Version: 1.50
> The default /root/.bashrc contains this line:
>  export PS1='\h:\w\$ '
> That line isn't necessary because /etc/bash.bashrc does a similar but
> better thing:
>  PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
> Indeed, the /root/.bashrc PS1 setting defeats attempts to set
> debian_chroot (as an exported environment variable, or via /etc) to
> affect root's prompt.
> I think the PS1 setting in /root/.bashrc can safely be removed.

This isn't present on rootskel but base-files. The referenced file is
copyed from /usr/share/base-files/dot.bashrc ro /root/.bashrc when
configuring the postinst.

        O T A V I O    S A L V A D O R
 E-mail: otavio@debian.org      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://otavio.ossystems.com.br
"Microsoft sells you Windows ... Linux gives
 you the whole house."

Reply to: