Package: posh
Version: 0.6.6
Severity: normal
Hiya,
$ echo echo in > a
$ ENV=./a posh -c :
in
$ ENV=./a posh ./a
in
in
According to SUSv3:
ENV
^[UP XSI] [Option Start] The processing of the ENV
shell variable shall be supported on all
XSI-conformant systems or if the system supports the
User Portability Utilities option. [Option End]
This variable, when and only when an interactive
shell is invoked, shall be subjected to parameter
expansion (see Parameter Expansion) by the shell and
the resulting value shall be used as a pathname of a
file containing shell commands to execute in the
current environment. The file need not be executable.
If the expanded value of ENV is not an absolute
pathname, the results are unspecified. ENV shall be
ignored if the user's real and effective user IDs or
real and effective group IDs are different.
So, first it's an XSI extension, so I guess posh is not required
to implement it, but as it does, I think it shouldn't read the
$ENV file when not interactive.
That bug is inherited from pdksh (and is still there in the
pdksh debian package).
It has been fixed in mksh (MirBSD ksh).
bash processes $BASH_ENV and not $ENV when not interactive
unless it's called as "sh" or with --posix or with
POSIXLY_CORRECT in its environment in which case it processes
$ENV only when interactive and never processes $BASH_ENV.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.24.2
Locale: LANG=en_GB.ISO-8859-15, LC_CTYPE=en_GB.ISO-8859-15 (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash
Versions of packages posh depends on:
ii debconf [debconf-2.0] 1.5.21 Debian configuration management sy
ii libc6 2.7-10 GNU C Library: Shared libraries
posh recommends no packages.
-- debconf-show failed
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]