• Michael Shigorin's avatar
    "if test ..." replaced by "if [ ... ]" · 180ed535
    Michael Shigorin authored
    Fixed up the remnants of the early style mix
    to correspond to the proposed doc/style.txt;
    the rationale being that
    
    	if [ ... ]; then
    		...
    		...
    	fi
    
    is the more readable construct among itself,
    
    	if test ...; then
    		...
    		...
    	fi
    
    and
    
    	[ ... ] && {
    		...
    		...
    	}
    
    due to the condition being more distinguishable
    when bracketed and the body more apparent as the
    one inside "if" and not any other block; the less
    obvious difference is that the final construct of
    the latter form is prone to the whole script exit
    status being non-zero if the condition isn't met.
    180ed535
Name
Last commit
Last update
.gear Loading commit data...
bin Loading commit data...
conf.d Loading commit data...
doc Loading commit data...
features.in Loading commit data...
image.in Loading commit data...
lib Loading commit data...
pkg.in Loading commit data...
sub.in Loading commit data...
.gitignore Loading commit data...
COPYING Loading commit data...
Makefile Loading commit data...
QUICKSTART Loading commit data...
README Loading commit data...