Public bug reported:
Binary package hint: bash
In .bashrc the following command does not work properly when running a
interactive shell by sudo -i :
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
So either "sudo -i" should set $PS1 should set $PS1 properly or .bashrc
should use a different mehtod to determine the shell type.
ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: bash 3.2-5ubuntu1
ProcEnviron:
PATH=(custom, user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: bash
Uname: Linux 2.6.28-18-generic i686
** Affects: bash (Ubuntu)
Importance: Undecided
Status: New
** Tags: apport-bug i386
--
.bashrc interactive shell check not working in case of interactive shell
invoked by sudo -i
https://bugs.launchpad.net/bugs/578196
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs