On Saturday 03 December 2011 04:36:32 Marek Vasut wrote: > > On Saturday 03 December 2011 03:23:28 Marek Vasut wrote: > > > > On Saturday 03 December 2011 02:32:03 Marek Vasut wrote: > > > > > + if [ "$ONLY_LIST" == 'y' ] ; then return ; fi > > > > > > > > [ "$ONLY_LIST" = "y" ] && return > > > > > > I prefer to be explicit. > > > > my version is "explicit" as well > > > > the point was more that if statements shouldn't be one-liners like that. > > if you want to keep it, then unwrap the block. > > Is there any such rule?
i don't think we have a style guide for shell scripts, but what you're proposing doesn't show up anywhere in the current tree. and it's ugly :P. -mike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot