[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Breaking from a for loop?
From: |
Paul Smith |
Subject: |
RE: Breaking from a for loop? |
Date: |
Tue, 24 Nov 2009 09:32:50 -0500 |
On Tue, 2009-11-24 at 14:27 +0000, David Aldrich wrote:
> if [ $$? > 0 ];
>
> but that is no better. Can you see anything obviously wrong with this
> please?
Well, one problem is that ">" is a string comparison operator not an
integer comparison operator.
See the "test" man page for more information on the syntax for shell
test conditions.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.mad-scientist.net
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
- make gives exit status of 0 even when compile fails, David Aldrich, 2009/11/23
- Re: make gives exit status of 0 even when compile fails, Paul Smith, 2009/11/23
- RE: make gives exit status of 0 even when compile fails, David Aldrich, 2009/11/23
- Breaking from a for loop?, David Aldrich, 2009/11/23
- Re: Breaking from a for loop?, Philip Guenther, 2009/11/23
- RE: Breaking from a for loop?, David Aldrich, 2009/11/24
- RE: Breaking from a for loop?, Paul Smith, 2009/11/24
- RE: Breaking from a for loop?, David Aldrich, 2009/11/24
- RE: Breaking from a for loop?,
Paul Smith <=
- RE: Breaking from a for loop?, David Aldrich, 2009/11/24
- RE: Breaking from a for loop?, Paul Smith, 2009/11/24
- RE: Breaking from a for loop?, David Aldrich, 2009/11/24