On Fri, Dec 14, 2012 at 09:01:08AM +0100, [email protected] wrote:
> Hello,
> 
> I want to write a hush script which evaluates standard output of some 
> command, e.g.:
> 
> VARIABLE=$(command)
> 
> or
> 
> VARIABLE=`command`
> 
> How can this be done within hush?

This can't be done. For this we would need output redirection, multiple
thread contexts, ...

In some commands we work around this by specifying the variable name on
the command line.

For example the readline command works like this:

Usage: readline <prompt> VAR
readline reads a line of user input into variable VAR.

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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to