Shell implementation -- based on bash and posix.