Package: dash
Version: 0.5.1-3
Severity: normal

Hi,

man dash says:
     If the environment variable ENV is set on entry to a shell, or is set in
     the .profile of a login shell, the shell next reads commands from the
     file named in ENV.  Therefore, a user should place commands that are to
...
     substituting for ``.shinit'' any filename you wish.  Since the ENV file
     is read for every invocation of the shell, including shell scripts and
                 ^^^^^
     non-interactive shells, the following paradigm is useful for restricting

But dash behaves:

$ echo $ENV
/home/joerg/.shrc
$ head -4 $ENV
# ~/.shrc: executed by sh(1) for non-login shells.
# throught $ENV set in ~/.profile

echo $0 shrc
(joerg):~$ dash -c true
(joerg):~$ posh -c true
posh shrc

Bye, Jörg.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.9
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages dash depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an

-- debconf information excluded

Attachment: signature.asc
Description: Digital signature

Reply via email to