Yes, FriCAS should build with different awk, in particular mawk.
Solaris is somewhat special. Some "standard" Solaris tools
were/are extremaly old fashioned it make no sense to support
so old tools on rare platform. OTOH there were fixes to our
awk scripts and there is good chance that they will work now.
But it seems that nobody tried Solaris in many years so we keep
it without change.
> Is FriCAS supposed to work with mawk? Can we require gawk in general or
> would you rather like to be able to build with any awk?
>
> If it is any awk, then what is the language that is accepted for FriCAS
> awk scripts, since there are quite a few differences between the various
> awks.
There is Posix standard for awk so core language should be the
same on all reasonably modern awk. In practice we deal with
issues in reactive manner: it there is a problem we fix it.
Currenly mawk is main alternative...
IIRC manual for GNU awk said which parts are standard and
which are extentions.
>
> In that "any awk case", it would be helpful to know the reason why mawk says
>
> make[3]: Entering directory '/home/hemmecke/scratch/fricas/src/doc'
> mawk -f /home/hemmecke/g/fricas/src/doc/ht.awk
> /home/hemmecke/g/fricas/src/doc/htex/ug02.htex tmp >
ug02.ht
> mawk: /home/hemmecke/g/fricas/src/doc/ht.awk: line 554: improper use of next
> make[3]: *** [Makefile:477:
ug02.ht] Error 2
From mawk manual:
: Program flow at the pattern {action} level can be changed with the
:
: next
: exit opt_expr
so it seems that you are not allowed to use next in functions.
--
Waldek Hebisch