Re: Bash default /etc/bash.bashrc overwrites PS1 even if SUDO_PS1 is set

2017-12-18 Thread Eric Engstrom
doh - thanks - didn't think of that, and that makes more sense. Nevermind then. On 12/18/17 1:11 PM, DJ Mills wrote: > > > On Mon, Dec 18, 2017 at 11:25 AM, Eric Engstrom > wrote: > > Dear Bash Maintainer(s), > > Bash's default /etc/bash.bashrc (on debian sys

Re: Bash default /etc/bash.bashrc overwrites PS1 even if SUDO_PS1 is set

2017-12-18 Thread DJ Mills
On Mon, Dec 18, 2017 at 11:25 AM, Eric Engstrom wrote: > Dear Bash Maintainer(s), > > Bash's default /etc/bash.bashrc (on debian systems at least) blindly > overwrites PS1 even if it's been set already. This makes it difficult > to use sudo's abiltity to set PS1 via the SUDO_PS1 env var. > > Per

Bash default /etc/bash.bashrc overwrites PS1 even if SUDO_PS1 is set

2017-12-18 Thread Eric Engstrom
Dear Bash Maintainer(s), Bash's default /etc/bash.bashrc (on debian systems at least) blindly overwrites PS1 even if it's been set already. This makes it difficult to use sudo's abiltity to set PS1 via the SUDO_PS1 env var. Perhaps overly simplistic, but the following modification seems to work

Re: this makes sense

2017-12-18 Thread Chet Ramey
On 12/17/17 10:47 PM, isabella parakiss wrote: > IFS=_ foo_bar=well; set foo bar; echo "i'm a ${!@} designed language" Thanks for the report. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@c

BASH_SOURCE gets confused when multiple sources are a priori candidates

2017-12-18 Thread Bruno Vasselle
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/local/sha