Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
** main.c for 42sh in /home/seblu/devel/c/42sh/src/execution
**
** Made by Seblu
** Login <seblu@epita.fr>
**
** Started on Mon Apr 10 23:57:28 2006 Seblu
** Last update Sun Jul 16 20:13:34 2006 Seblu
*/
#include <stdio.h>
/*
** Global shell structure
*/
struct s_shell *shell = NULL;
/*!
** Program entry point
**
** @param argc Argument count
** @param argv Argument vector
**
** @return return program value
*/
int main(int argc, char *argv[])
{
int ret;
shell = sh_init();
//open_parse(argc, argv, shell);
/* if (shell->ast) */
/* exec_start(shell); */
ret = shell->last_status;
sh_destroy(shell);
return ret;
}