From: "Tiger Liu(BJ-RD)" <tigerliu@zhaoxin.com>
To: "Ni, Ray" <ray.ni@intel.com>,
"devel@edk2.groups.io" <devel@edk2.groups.io>
Subject: Re: [edk2-devel] Logical operator function in shell environment
Date: Tue, 20 Sep 2022 09:06:32 +0000 [thread overview]
Message-ID: <2627b229450449e088b4e3c8601967c2@zhaoxin.com> (raw)
Hi, Ray:
Thanks for your reply!
I looked it up in shell spec, not find logical operator functions supported.
I found shell supported redirect output to an environment variable.
But I could not succeed in my experiment.
For example:
1. I create a environment variable "testvar" with set command
2. Then, I execute "date > testvar", but failed.
Thanks
-----邮件原件-----
发件人: Ni, Ray <ray.ni@intel.com>
发送时间: 2022年9月20日 16:56
收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) <TigerLiu@zhaoxin.com>
主题: RE: [edk2-devel] Logical operator function in shell environment
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@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Tiger
> Liu(BJ-RD)
> Sent: Tuesday, September 20, 2022 1:37 PM
> To: devel@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.
>
>
>
>
保密声明:
本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
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.
next reply other threads:[~2022-09-20 9:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-20 9:06 Tiger Liu(BJ-RD) [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-09-20 5:36 [edk2-devel] Logical operator function in shell environment Tiger Liu(BJ-RD)
2022-09-20 8:56 ` Ni, Ray
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2627b229450449e088b4e3c8601967c2@zhaoxin.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox