Permalink
Browse files

Added environ case and called printEnVars() function

  • Loading branch information...
1 parent c1a1532 commit 223edd455e5e98a14dd1c98873cbcac4e9a0183a Jon Stacey committed Feb 17, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/thsh.c
View
@@ -77,6 +77,10 @@ int main(int argc, char *argv[], char *envp[])
printf("The value is: \"%s\"\n", arguments[0]);
puts("It worked!");
}
+ else if (strcmp(arguments[0], "environ") == 0)
+ {
+ printEnVars();
+ }
}
return EXIT_SUCCESS;

0 comments on commit 223edd4

Please sign in to comment.