mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ian Abbott <abbotti@mev.co.uk>
To: "Sascha Hauer" <s.hauer@pengutronix.de>, 张忠山 <zzs213@126.com>
Cc: barebox@lists.infradead.org
Subject: Re: Howto set var from command output
Date: Wed, 19 Apr 2017 11:25:48 +0100	[thread overview]
Message-ID: <cb6c8ff7-61dc-2ae1-fe4a-0a27e7b89176@mev.co.uk> (raw)
In-Reply-To: <20170419101410.ozjeh4frxdfujn73@pengutronix.de>

On 19/04/17 11:14, Sascha Hauer wrote:
> 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?

I guess it would be a nice little project for someone, maybe Google 
Summer of Code if that's still going?  After all, MS-DOS has file 
redirection and primitive pipeline support, so I guess it's doable.

-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti@mev.co.uk> )=-
-=(                          Web: http://www.mev.co.uk/  )=-

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2017-04-19 10:26 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
2017-04-19 10:25   ` Ian Abbott [this message]

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=cb6c8ff7-61dc-2ae1-fe4a-0a27e7b89176@mev.co.uk \
    --to=abbotti@mev.co.uk \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.de \
    --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