help-make
[Top][All Lists]
Advanced

[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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]