shell.c alias handling seperated into a function