thanks

this bug was introduced in a libexpr change that handles
static global and function local variable scoping
I fixed the bug and added you example to the tw regression tests
in src/cmd/tw/tw.tst

should be posting a beta tomorrow

On Tue, 30 Nov 2010 09:57:14 +0100 Philippe Bergheaud wrote:
> The following commands work as expected.  Function order is irrelevant.

> $ ast-base.2010-07-01/arch/linux.i386/bin/tw -e '
>         select: type == REG; 
>         begin: printf("Hello !\n");
>         action: return;
> '
> Hello !

> $ ast-base.2010-07-01/arch/linux.i386/bin/tw -e '
>         begin: printf("Hello !\n");
>         select: type == REG; 
>         action: return;
> '
> Hello !

> $ ast-base.2010-07-01/arch/linux.i386/bin/tw -e '
>         begin: printf("Hello !\n");
>         action: return;
>         select: type == REG; 
> '
> Hello !

> Regressions in 2010-10-10.  Function order matters and breaks the logic.

> $ ast-base.2010-10-10/arch/linux.i386/bin/tw -e '
>         select: type == REG; 
>         begin: printf("Hello !\n");
>         action: return;
> '
> ### Regression 1: No output at all

> $ ast-base.2010-10-10/arch/linux.i386/bin/tw -e '
>         begin: printf("Hello !\n");
>         select: type == REG; 
>         action: return;
> '
> Hello !
> ./file1
> ./file2
> ./file3
> ### Regression 2: All files are selected

> $ ast-base.2010-10-10/arch/linux.i386/bin/tw -e '
>         begin: printf("Hello !\n");
>         action: return;
>         select: type == REG; 
> '
> Hello !
> ### No regression: Expected output

> Philippe Bergheaud

_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to