The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 807 - File: showthread.php PHP 7.3.15 (Linux)
File Line Function
/showthread.php 807 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
fails to set variables
2018-02-20, 01:21
Post: #1
fails to set variables
Hello!
I am puzzled why this does not work (version 1.0.0+ (c9f6 as well as 546dd)):

#!ipxe
echo test
set vartest 200
echo $vartest
echo ${vartest}
sleep 5
exit

It displays
test


only. I was expecting to see
test
200
200

What am I doing wrong?

What I am really trying to do is set up a boot menu but with
choose --timeout 5000 --default ubuntu target
${target} is empty as well
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
fails to set variables - 123batman - 2018-02-20 01:21
RE: fails to set variables - NiKiZe - 2018-02-20, 18:17



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