On 09/08/2009 01:03 PM, Dejan Muhamedagic wrote: > log_level. And the regular expression test for the same parameter. > > Also, log_level set to empty cannot be distinguished from > log_level not set at all using grep(1) or test(1). You either > have to find another way or change the usage. That is, unless > setting --log-level="" is equal to not specifying the --log-level > option at all in which case this won't result in a regression.
i first test for "^(error|warning|info|message|debug)$" which means that loglevel="" passes this test. it is ok to specify no log-level. before starting i check: > # set log-level > if [ ! -z "$log_level" ]; then > PARAM_PREFIX="$PARAM_PREFIX --log-level=$log_level " > fi which should handle this an empty loglevel, right? thanks, raoul -- ____________________________________________________________________ DI (FH) Raoul Bhatia M.Sc. email. r.bha...@ipax.at Technischer Leiter IPAX - Aloy Bhatia Hava OEG web. http://www.ipax.at Barawitzkagasse 10/2/2/11 email. off...@ipax.at 1190 Wien tel. +43 1 3670030 FN 277995t HG Wien fax. +43 1 3670030 15 ____________________________________________________________________ _______________________________________________________ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/