From: Sascha Hauer <s.hauer@pengutronix.de>
To: 张忠山 <zzs213@126.com>
Cc: barebox@lists.infradead.org
Subject: Re: Howto set var from command output
Date: Wed, 19 Apr 2017 12:14:10 +0200 [thread overview]
Message-ID: <20170419101410.ozjeh4frxdfujn73@pengutronix.de> (raw)
In-Reply-To: <ec298b0f-90cb-5ce0-0a26-ab89836ad687@126.com>
On Wed, Apr 19, 2017 at 06:04:17PM +0800, 张忠山 wrote:
> Hush does not support command substitution
> In barebox is there some to set var from a command output?
> Or is there a command to do it?
There is no way to set a variable from a command output, mostly because
this would be really hard to implement. However, some commands support
setting a variable directly, like for example the basename command.
Which command output do you want to have in a variable?
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2017-04-19 10:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-19 10:04 张忠山
2017-04-19 10:14 ` Sascha Hauer [this message]
2017-04-19 10:25 ` Ian Abbott
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-all 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=20170419101410.ozjeh4frxdfujn73@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=zzs213@126.com \
/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