In Solaris ksh93 (which has xgrep as built in utility) I get this: (builtin xgrep ; print -- "-a -C" | xgrep '(.*-a.*)&(.*-C.*)') -a -C
Glenn, is ~(X) broken in ast-ksh.2010-03-09? Olga 2010/3/28 ольга крыжановская <[email protected]>: > OK, I am getting crazy (maybe): Can anyone explain why ksh -c 'x="-a > -C" ; [[ "$x" == ~(Xlr)(.*-a.*)&(.*-C.*) ]] && print true' does not > print 'true"? Xlr selects an augmented extended regular expression, > .*-a.* should be a match, .*-C.* should be a match and & means AND. > I'm banging my head since an hour against the problem with no success. > HELP, please. > > Olga > -- > , _ _ , > { \/`o;====- Olga Kryzhanovska -====;o`\/ } > .----'-/`-/ [email protected] \-`\-'----. > `'-..-| / Solaris/BSD//C/C++ programmer \ |-..-'` > /\/\ /\/\ > `--` `--` > -- , _ _ , { \/`o;====- Olga Kryzhanovska -====;o`\/ } .----'-/`-/ [email protected] \-`\-'----. `'-..-| / Solaris/BSD//C/C++ programmer \ |-..-'` /\/\ /\/\ `--` `--` _______________________________________________ ast-users mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-users
