[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[50 character or so descriptive subject here (for reference)]
From: |
teirllm |
Subject: |
[50 character or so descriptive subject here (for reference)] |
Date: |
Mon, 30 Dec 2002 22:06:47 -0600 (CST) |
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu'
-DCONF_VENDOR='redhat' -DSHELL -DHAVE_CONFIG_H -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -I. -I. -I./include -I./lib -I/usr/include -O2
-march=i386 -mcpu=i686
uname output: Linux swt40.swt.com 2.4.9-7smp #1 SMP Thu Oct 18 13:34:30 EDT
2001 i686 unknown
Machine Type: i386-redhat-linux-gnu
Bash Version: 2.05
Patch Level: 8
Release Status: release
Description:
[Detailed description of the problem, suggestion, or complaint.]
>From the bash2.05b.0 info documentation:
`BASH'
The full pathname used to execute the current instance of Bash.
This does not accurately describe the value of $BASH. If one executes
exec -a name bashpath
then BASH does not get set to the full pathname that was actually used
to execute bash but to the pathname that would be used if the command
`name` were executed (and to /bin/bash if `name` is not the name of an
actual command.)
I have two versions of bash, 2.05.8 in /bin and 2.05b.0 in
/usr/local/bin. My value of PATH is provided in the bash run below.
One consequence of all of this can be seen right above:
bashbug claims that it got invoked from version 2.05.8, but it did
actually get invoked from version 2.05b.0 in /usr/local/bin.
Repeat-By: [Describe the sequence of events that causes the
problem to occur.]
[bash2.05b.0 ~ 5 1] exec -a bash /usr/local/bin/bash
[bash2.05b.0 ~ 5 1] echo $0
bash
[bash2.05b.0 ~ 5 2] echo $BASH
/bin/bash
[bash2.05b.0 ~ 5 3] echo $BASH_VERSION
2.05b.0(1)-release
[bash2.05b.0 ~ 5 4] exec -a nonsense /usr/local/bin/bash
[nonsense2.05b.0 ~ 5 1] echo $0
nonsense
[nonsense2.05b.0 ~ 5 2] echo $BASH
/bin/bash
[nonsense2.05b.0 ~ 5 3] echo $BASH_VERSION
2.05b.0(1)-release
[nonsense2.05b.0 ~ 5 4] exec -a test /usr/local/bin/bash
[test2.05b.0 ~ 5 1] echo $0
test
[test2.05b.0 ~ 5 2] echo $BASH
/usr/bin/test
[test2.05b.0 ~ 5 3] echo $BASH_VERSION
2.05b.0(1)-release
[test2.05b.0 ~ 5 4] exec /usr/local/bin/bash
[bash2.05b.0 ~ 5 1] echo $0
/usr/local/bin/bash
[bash2.05b.0 ~ 5 2] echo $BASH
/usr/local/bin/bash
[bash2.05b.0 ~ 5 3] echo $BASH_VERSION
2.05b.0(1)-release
[bash2.05b.0 ~ 5 4] exec /bin/bash
[bash2.05.8 ~ 5 1] echo $0
/bin/bash
[bash2.05.8 ~ 5 2] echo $BASH
/bin/bash
[bash2.05.8 ~ 5 3] echo $BASH_VERSION
2.05.8(1)-release
[bash2.05.8 ~ 5 4] echo $PATH
/bin:/usr/bin:/usr/bin/X11:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/home/teirllm:/home/teirllm/shell-scripts:/home/teirllm/Csources:/home/teirllm/gapmodules
[bash2.05.8 ~ 5 5]