shell.c major speed up, tested between bash and dash on basic 100+char tests