When i pass $ROOT as token an error(Segmentation fault) is given.
char* input = readline("$ "); char *tokens[strlen(input)]; while((tokens[numTokens