+ last_exit_status set/get functions for here_doc + TODO : replace all occurences of last_exit_status + **environ fix + builtin_unset() fix
18 lines
235 B
C
18 lines
235 B
C
|
|
# include <stdio.h>
|
|
# include <stdlib.h>
|
|
|
|
int main(int argc, char *argv[], char *envp[])
|
|
{
|
|
int i;
|
|
|
|
printf("argc = %i\n", argc);
|
|
i = 0;
|
|
while (argv[i])
|
|
{
|
|
printf("%s = |%s|\n", argv[i], getenv(argv[i]));
|
|
i++;
|
|
}
|
|
return (0);
|
|
}
|