• 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
generate.mk 2.26 KB