[PATCH] defaultenv: don't overwrite in config

Sascha Hauer s.hauer at pengutronix.de
Sun May 13 05:05:22 EDT 2012


On Sat, May 12, 2012 at 11:40:12PM +0200, Uwe Kleine-König wrote:
> This patch prooved to be useful while working with a colleague on a single
> machine. It allows to switch the user without editing /env/config by
> just issuing:
> 
> 	export user=me
> 
> . Note, in bash this construct (i.e. an if without body) bails out with:
> 
> 	Syntax error: "fi" unexpected
> 
> but in hush it seems to do the right thing.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

Applied, thanks.

I hope though that the current default env will not last for very much
longer.

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 |



More information about the barebox mailing list