Hello,

I introduced the problem by the following command
        
awk '/^ \t*case/,/^ \t*esac/{if(/\[\^.*\)/) exit(1)}'

which I added to autotest.  The testsuite is not working properly.

On Wed, May 25, 2005 at 02:21:45PM +0200, Ralf Menzel wrote:
> I'm using a Solaris 9 machine and the Sun Workshop 9.0 compiler:

Yes, Solaris' /bin/awk has a very limited capabilities.  Every time
I try to use awk, I run into this.  Unfortunately, I don't have access
to Solaris.

There are several ways to fix the problem:

1) either adapt the script so that it works even with Solaris' /bin/awk

What may be the root of the problem?
- the commma in:   /re1/, /re2/
- the regex in if:   if(/re/)
- or, most likely, the "exit"

2) Or, preferably, add AC_PROG_AWK to configure.ac and use $AWK.

That way we'd use at least /bin/nawk, which might work.
With a patch I have in my queue, we'd even find /usr/xpg4/bin/awk,
which is POSIX-conformant.

I'll look at it again later.

Stepan


Reply via email to