Hello,

On Tue, Jun 07, 2005 at 07:28:11PM +0200, Ralf Menzel wrote:
> -    { $GREP -v \
> +    { $EGREP -v \
>  '^\(ac\|as\)_
>  ^\(PPID\|RANDOM\|SECONDS\|'\'\\\$\''\)=
>  ^[[^=]]*=$'        $act_file
> --- snip ---
> 
> Yes, that's all one 'E' makes the difference between over one hundred
> test cases failing or succeeding.

no, this means you are cheating: in egrep, regexp  \(ac\|as\)_
would match string  (ac|as)_    -- but that's not what we want to check.
You have to adapt the regular expressions for egrep.

See macro AT_CHECK_ENV for an interesting example related to this.

BTW: AT_CHECK_ENV uses $GREP -E, not $EGREP.  Do you know why?
Shouldn't $EGREP be more portable?

Have a nice day,
        Stepan Kasal


Reply via email to