This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: possible gcc bug?
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: George R Goffe <grgoffe at yahoo dot com>
- Cc: "gcc\ at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Sat, 21 Sep 2013 09:12:38 +0200
- Subject: Re: possible gcc bug?
- Authentication-results: sourceware.org; auth=none
- References: <1379742032 dot 82164 dot YahooMailNeo at web162104 dot mail dot bf1 dot yahoo dot com>
George R Goffe <grgoffe@yahoo.com> writes:
> This error message appears because line 500 of the configure script has an improperly(?) formed if statement: ÂÂÂ
>
>
> 500ÂÂ if ls -dL / >/dev/null 2>&1; then
This statement is perfectly correct. It is testing the exit code of
executing the ls command. Your problem is definitely somewhere else.
> when changed to the following, the message goes away:
>
> 500ÂÂ if [ ls -dL / >/dev/null 2>&1 ]; then
This would be an errorneous use of the test builtin, hidden only due to
fact that stderr is redirected to /dev/null.
$ test ls -dL /
-bash: test: -dL: binary operator expected
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."