* Peter Rosin wrote on Fri, Sep 17, 2010 at 12:37:07PM CEST:
> Subject: [PATCH 1/2] * tests/sh.test: Detect missing 'test' in 'if "$foo" = 
> ...'.

OK, but I find the log entry not really explaining the change.
How about this instead?

    tests: actually detect missing 'test' in 'if "$foo" = ...'.

    * tests/sh.test: Remove extra backslash in regex.

Thanks,
Ralf

> @@ -31,7 +31,7 @@
>  status=$EXIT_SUCCESS
>  
>  # Check for bad binary operators.
> -if $EGREP -n -e 'if[         ]+["'\'']?\\$[^         ]+[     
> ]+(=|-[lg][te]|-eq|-ne)' $scripts; then
> +if $EGREP -n -e 'if[         ]+["'\'']?\$[^  ]+[     
> ]+(=|-[lg][te]|-eq|-ne)' $scripts; then
>    echo "use \`if test \$something =' instead of \`if \$something ='"
>    status=$EXIT_FAILURE
>  fi

Reply via email to