This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: bash PATH problem [WAS:gdb 20000610 crashes]
- To: cygwin at sourceware dot cygnus dot com
- Subject: Re: bash PATH problem [WAS:gdb 20000610 crashes]
- From: Chris Faylor <cgf at cygnus dot com>
- Date: Tue, 27 Jun 2000 15:48:05 -0400
- References: <4.3.2.7.0.20000627142950.00b1de50@courriel.polymtl.ca>
- Reply-To: cygwin at sourceware dot cygnus dot com
On Tue, Jun 27, 2000 at 02:58:02PM -0400, Andre Bleau wrote:
>The problem I had with is related to a bash PATH problem; I have an older
>version of gdb in /c/GNAT/BIN while the newest version is in /usr/bin.
>Seems that bash 2.04 has problems sorting the PATH. If type:
>
> PATH=/usr/bin
> export PATH
> gdb --version
>
>I get:
>
>GNU gdb 5.0
>Copyright 2000 Free Software Foundation, Inc.
>GDB is free software, covered by the GNU General Public License, and you are
>welcome to change it and/or distribute copies of it under certain conditions.
>Type "show copying" to see the conditions.
>There is absolutely no warranty for GDB. Type "show warranty" for details.
>This GDB was configured as "i686-pc-cygwin".
>
>Good. Now, I add /c/GNAT/BIN at the end of the PATH:
>
> PATH=$PATH:/c/GNAT/BIN
> export PATH
> gdb --version
>
>I get:
>
>GNU gdb 4.17.gnat.3.12p
>Copyright 1998 Free Software Foundation, Inc.
>GDB is free software, covered by the GNU General Public License, and you are
>welcome to change it and/or distribute copies of it under certain conditions.
>Type "show copying" to see the conditions.
>There is absolutely no warranty for GDB. Type "show warranty" for details.
>This GDB was configured as "i686-pc-mingw32".
>
>Seems that executables placed at the end of the PATH can sometimes overide
>the ones placed at the beginning.
I would bet that there is a case problem here. I wonder if you have a GDB.exe
in one directory and a gdb.exe in another. Either that or a 'gdb.exe' and
a 'gdb'.
cgf
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com