mkl at pengutronix.de
Tue Mar 1 09:11:31 EST 2011
On 03/01/2011 03:06 PM, Vanalme Filip wrote:
> One more question about barebox scripts (I guess even scripts in
> general...). This is part of a script from another board (that I took
> over for my own board):
> . /env/config
> If [ x$1 = xflash ]; then
> if [ x$1 = xnet ]; then
> why the scripts are using i.e. [ x$1 = xflash ] instead of just simply [ $1 = flash ] ? Both are doing the same, no ?
The shell is quite old and doesn't support that. But you're right for
modern shells like bash or dash.
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 262 bytes
Desc: OpenPGP digital signature
More information about the barebox