The VERBOSE_OUTPUT switch only worked for the simple case not conditionned by $LM_VERBOSE. Like in this example where OUTPUT is correctly set to either /dev/stdout or /dev/null:
echo "Swapping out configuration files." >> $OUTPUT But, when $LM_VERBOSE is used (95% of the time), it would not work as expected. Take this code for example: $LM_VERBOSE && echo "AC97 power save mode enabled." >> $OUTPUT With VERBOSE_OUTPUT=1, LM_VERBOSE="[1 = 0]", OUTPUT=/dev/stdout, the substituted code would NOT execute due to [1 = 0]: [1 = 0] && echo "AC97 power save mode enabled." >> /dev/stdout With VERBOSE_OUTPUT=0, LM_VERBOSE="[1 = 1]", OUTPUT=/dev/null, the substituted code would execute but send its output to /dev/null: [1 = 1] && echo "AC97 power save mode enabled." >> /dev/null Cheers, Sebastien On Wed, Dec 31, 2008 at 10:03:21AM +0100, Bart Samwel wrote: > Darn, thanks for reporting! But I wonder, why does the VERBOSE_OUTPUT > switch work then? I'll have to look into this... > > Cheers, > Bart
signature.asc
Description: Digital signature