Package: bash
Version: 3.1dfsg-8
Severity: important

PS1 (the "normal" prompt of bash) is set (in /etc/bash.bashrc?) independently of
whether the invocation was done interactively or non-interactively.

This makes non-interactive access undestinguishable from interactive access,
which sometimes may be desirable.

I haven't been able to find out the exact place where this happens. Also I've
been unable to track down when this might have happened.

To reproduce:
        ssh remotehost 'echo $PS1'
        ssh remotehost, then echo $PS1 (obviously)

Is there a relieble way to find out whether a shell is a (non-)interactive one?


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.24.2-hexe-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages bash depends on:
ii  base-files             4                 Debian base system miscellaneous f
ii  debianutils            2.17              Miscellaneous utilities specific t
ii  libc6                  2.3.6.ds1-13etch5 GNU C Library: Shared libraries
ii  libncurses5            5.5-5             Shared libraries for terminal hand

bash recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to