Package: bash
Version: 4.4-5
Severity: minor

Dear Maintainer,

The comments in the ~/.bashrc or /etc/skel/.bashrc file have 
force_color_prompt=yes commented 
by default. So as I'm reading it I should not have a color prompt. However, the 
case statement

    29  # set a fancy prompt (non-color, unless we know we "want" color)
    30  case "$TERM" in
    31      xterm-color|*-256color) color_prompt=yes;;
    32  esac

defines color_prompt=yes

So I end up with a color prompt as my $TERM matches. (In jessie the case was 
different and did not match).
I'm using the xterm on MacOS via SSH.

I expected to not have a color prompt unless I uncommented:
    36  #force_color_prompt=yes

Perhaps lines 30-32 could be commented out by default? Or move that case into 
the force_color_prompt if block.



-- System Information:
Debian Release: 9.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages bash depends on:
ii  base-files   9.9+deb9u2
ii  dash         0.5.8-2.4
ii  debianutils  4.8.1.1
ii  libc6        2.24-11+deb9u1
ii  libtinfo5    6.0+20161126-1+deb9u1

Versions of packages bash recommends:
ii  bash-completion  1:2.1-4.3

Versions of packages bash suggests:
pn  bash-doc  <none>

-- no debconf information

Reply via email to