[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
BASH_ENV does not behave as expected.
From: |
Eric Darrot |
Subject: |
BASH_ENV does not behave as expected. |
Date: |
Mon, 28 Jan 2002 17:16:06 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 |
Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-keynux-linux-gnu'
-DCONF_VENDOR='keynux' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include
-I./lib -O3
uname output: Linux donut.keynux.net 2.4.8-26mdk #1 Sun Sep 23 17:06:39
CEST 2001 i686 unknown
Machine Type: i686-keynux-linux-gnu
Bash Version: 2.05a
Patch Level: 0
Release Status: release
Description:
Well, easy description, the following doesn't work:
echo "echo hello-world" > /tmp/bashenv.sh
chmod 755 /tmp/bashenv
BASH_ENV=/tmp/bashenv.sh bash
But it should, as stated in the man page:
--- begin of citation
Bash behaves as if the following command
were executed:
if [ -n "$BASH_ENV" ]; then . "$BASH_ENV"; fi
--- end of citation
Repeat-By:
See above.
Fix:
Hum, I know fixes are encouraged, but...
For your information, the same commands work perfectly
with sh:
ENV=/tmp/bashenv.sh sh
says "hello-world".
Thank you and HNY.
-- Eric Darrot
_____________________________________________________
KEYNUX - c/o INRIA (MASCOTTE) 2004 Route des Lucioles
B.P. 93 - 06902 SOPHIA ANTIPOLIS CEDEX - FRANCE
tel +33 4 92 38 78 29 / fax +33 4 92 38 79 71
- BASH_ENV does not behave as expected.,
Eric Darrot <=