...os 5.8.
the problem is related to this part of the code:
-----------------------------------------------------------
void shinit(myshenvTP P, char *pwd, char *path, char *home) {
if(MALLOC(P->PWD, MAX_LEN, char) || MALLOC(P->PATH, strlen(path)+1, char) || MALLOC(P->HOME,strlen(home)+1...