I don't know whether Shell supports such capability. Can you check the Shell spec?
toggle quoted messageShow quoted text
It's also possible that Spec supports such capability but implementation doesn't.
Then you are welcome to implement that in ShellPkg.
From: email@example.com <firstname.lastname@example.org> On Behalf Of Tiger
Sent: Tuesday, September 20, 2022 1:37 PM
Subject: [edk2-devel] Logical operator function in shell environment
I am writing a shell script.
I have a few questions about shell script syntax.
1. Could I save register content (which is read with mm command) to a local
Take an example:
Reading register 0x80's content with mm command, and I want to save its
content to a local variable for further processing.
Maybe, I could use command output redirection syntax, and redirect its
content to an environment variable?
2. Is there any logical operator functions could be used in shell script?
Such as : and / or functions.
This email contains confidential or legally privileged information and is for the
sole use of its intended recipient. Any unauthorized review, use, copying or
forwarding of this email or the content of this email is strictly prohibited.