• 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
..
main Loading commit data...
stage1 Loading commit data...
stage2 Loading commit data...
Makefile Loading commit data...
README Loading commit data...