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