Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
isset always returns true !
2016-07-14, 14:03
Post: #2
RE: isset always returns true !
(2016-07-14 11:38)naruto Wrote:  I checkout to compile and run iPXE at the commit

commit bb9961fb548068f769c666970c1de6c68743ed07
Author: Michael Brown <mcb30@ipxe.org>
Date: Tue Jun 26 14:49:26 2012 +0100


However I found the command "isset" always true although the value does not exist and the loop never ends.

#!ipxe
set idx:int32 0
:loop isset ${net${idx}/mac} || goto loop_done
echo net${idx} is a ${net${idx}/chip} with MAC ${net${idx}/mac}
inc idx && goto loop
:loop_done

You are building a four-year old version of iPXE. The "inc" command does not even exist in the version that you are building. Nor does the ability to place commands on the same line as a loop label.

Use the current version of iPXE.

Michael
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
isset always returns true ! - naruto - 2016-07-14, 11:38
RE: isset always returns true ! - mcb30 - 2016-07-14 14:03



User(s) browsing this thread: 1 Guest(s)