[edk2-devel] Logical operator function in shell environment

Ni, Ray ray.ni at intel.com
Tue Sep 20 08:56:10 UTC 2022


I don't know whether Shell supports such capability. Can you check the Shell spec?
It's also possible that Spec supports such capability but implementation doesn't.
Then you are welcome to implement that in ShellPkg.

> -----Original Message-----
> From: devel at edk2.groups.io <devel at edk2.groups.io> On Behalf Of Tiger
> Liu(BJ-RD)
> Sent: Tuesday, September 20, 2022 1:37 PM
> To: devel at edk2.groups.io
> Subject: [edk2-devel] Logical operator function in shell environment
> 
> Hi, Experts:
> I am writing a shell script.
> 
> I have a few questions about shell script syntax.
> For examples:
> 1. Could I save register content (which is read with mm command) to a local
> variable?
>   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.
> 
> Thanks
> 
> 
> 保密声明:
> 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其
> 内容做任何未经授权的查阅、使用、复制或转发。
> CONFIDENTIAL NOTE:
> 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.
> 
> 
> 
> 



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#93983): https://edk2.groups.io/g/devel/message/93983
Mute This Topic: https://groups.io/mt/93797877/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list