Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using "||" as a string literal?
2018-04-05, 14:30 (This post was last modified: 2018-04-05 14:31 by mcb30.)
Post: #2
RE: Using "||" as a string literal?
(2018-04-05 13:23)myxal Wrote:  Is there a way to put a string containing "||" into a variable, and then using said variable in a kernel command?

Yes. There's no general purpose character escaping mechanism (e.g. a backslash) in iPXE, but you can hack around it using e.g.

Code:
set pipe |
set pipes ${pipe}${pipe}

and then use "${pipes}" in place of "||".

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


Messages In This Thread
RE: Using "||" as a string literal? - mcb30 - 2018-04-05 14:30



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