shell: Fix build on Solaris 9
commitcb924afe2e3465ec2f91fab55d31f7e3c26d03f4
authorJonathan Perkin <jperkin@joyent.com>
Fri, 11 Dec 2015 11:56:43 +0000 (11 11:56 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 6 Jun 2016 14:25:00 +0000 (6 22:25 +0800)
tree455df31bbf9b1d1d1f1673dbc661cc355245a75c
parent16cde63e05519c770daa69345b8cf37fb31eaa2a
shell: Fix build on Solaris 9

Ensure dash can build in a default Solaris 9 or older environment:

 - Execute scripts with $SHELL rather than /bin/sh, the latter does not
   support e.g. "if ! .." used by mkbuiltins.

 - /bin/awk does not support ?: syntax, use explicit statements instead.

 - /bin/nl requires no spaces between options and arguments.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
src/Makefile.am
src/mkbuiltins