Sean McGrath - Sun Microsystems Ireland wrote:
This is the Asterisk PBX right ?
It is.
Asterisk seems to be dependant on gnu utils rather than posix compliant utils.
Yeah. Changing the set of used utilities is not a problem and with little tweaking I always manage to compile the thing. However, on several occasions (and with some other software too) the problem was the assumption that /bin/sh is XPG4 compliant. The problem with this is that it cannot be solved cleanly. So I've raised a general question of executable shells.
btw, where in the asterisk source do you find anything like 'r=$((3 + 1))' ? The only script I found '((...))' was in a rc script that was written for the mandrake linux distro.
It was probably in some past revision, and now it's changed. Once I suggested the use of 'expr' instead of $(()) so that it would work with Solaris /bin/sh. But it doesn't make sense to ask people not use XPG4 shell features.
I think the right solution, and the solution which I'd like to see in some future revision of the standard, would be to define for example an empty #! (as suggested by F.Hofmann) to mean XPG4-compliant shell. Path to the shell could be set in the kernel via some mechanism (/etc/system?).
Anyway, thanks for the info! _______________________________________________ opensolaris-discuss mailing list [email protected]
