Re: Howto set var from command output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> )=-
-=(                          Web: http://www.mev.co.uk/  )=-

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




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux