Commit graph

364 commits

Author SHA1 Message Date
Antoine Riard
00cba8ea4d Merge branch 'master' of https://github.com/jzck/42sh
"close #130"
2017-03-21 19:38:56 +01:00
Antoine Riard
6673422632 close #130 2017-03-21 19:38:47 +01:00
Jack Halford
d5a99a7acc gonna start work, cliopts first 2017-03-21 18:41:29 +01:00
Jack Halford
27da345e70 added a backup path to hash algorithm 2017-03-21 17:40:51 +01:00
Jack Halford
fb806bfa90 issue #128 part 1 2017-03-21 16:41:00 +01:00
Jack Halford
a5247bea82 Merge branch 'master' of https://github.com/jzck/42sh 2017-03-21 15:26:55 +01:00
Jack Halford
89fd444e84 job control fine tuning 2017-03-21 15:13:32 +01:00
gwojda
787b1d280a fix bug exec 2017-03-21 15:11:20 +01:00
Jack Halford
b688c4f544 builtin_exit fixing ariard
also better backslash lexer for sample/subshell_pipe
2017-03-21 13:50:42 +01:00
wescande
767934736b merge 2017-03-21 02:17:16 +01:00
wescande
84bf7575c2 rectif exec of script + rectif job_control+ MOTHER FUCKER YEAH 2017-03-21 02:15:59 +01:00
Antoine Riard
c1c19bc52d without print 2017-03-20 23:13:00 +01:00
Jack Halford
aebb4f7613 protection free_history_list 2017-03-20 21:26:02 +01:00
Jack Halford
338913ade0 ctrlD ok 2017-03-20 20:53:23 +01:00
Antoine Riard
f72e8dbe3c modifs historique delim 2017-03-20 19:14:16 +01:00
Antoine Riard
ef7f95d2a0 modifs delim 2017-03-20 19:12:33 +01:00
wescande
7beeaa517e merge 2017-03-20 18:58:44 +01:00
wescande
f4a451a802 free instant process 2017-03-20 18:58:27 +01:00
gwojda
d947082c05 gwojda gros GROS boulet 2017-03-20 18:38:24 +01:00
gwojda
71f990edbe gwojda gros boulet 2017-03-20 18:28:13 +01:00
gwojda
b9e5321b5b bye bye DG 2017-03-20 18:18:34 +01:00
gwojda
03edcfc777 fin mise a la norme exec (reste un fichier mais il faut que vous y regardiez) 2017-03-20 17:08:39 +01:00
gwojda
d1250c5142 debut mise a la norme exec 2017-03-20 16:29:40 +01:00
gwojda
14ad158646 debut mise a la norme exec 2017-03-20 16:28:45 +01:00
Jack Halford
09a5cbb927 rectif gestion fichier/dossier executé 2017-03-20 16:28:15 +01:00
gwojda
aa042a4e37 debut mise a la norme exec 2017-03-20 16:27:46 +01:00
Jack Halford
cd0a1a77c7 norme libft 2017-03-20 16:04:52 +01:00
Jack Halford
88598b049a merge 2017-03-20 15:35:39 +01:00
Jack Halford
12b19423b3 execution stuff, job control changes, some norm 2017-03-20 15:33:43 +01:00
wescande
378aa39ceb rectif bquote 2017-03-20 15:11:04 +01:00
wescande
f8753646e2 merge 2017-03-20 14:47:03 +01:00
wescande
229864750f new Makefile compile libft without relink. change on exec for forker. change on all builtin for return status & set exit status 2017-03-20 14:42:49 +01:00
Jack Halford
28b2a059a5 fix leak redir 2017-03-20 12:27:36 +01:00
Jack Halford
33f6c24b0e job control minor fixes 2017-03-20 11:49:00 +01:00
wescande
d2c65880aa merge 2017-03-20 11:39:23 +01:00
wescande
714b0854be catch fix on master 2017-03-20 11:37:57 +01:00
Jack Halford
38d8847f82 fd fix, process state now enum not flag 2017-03-20 11:22:43 +01:00
Jack Halford
f482f78254 data_init and get_fd refactoring 2017-03-20 09:56:58 +01:00
wescande
4a5f7b61d7 nothing 2017-03-19 19:37:10 +01:00
wescande
60f150a4b4 modif env, modif command get ouput, modif hash (just a str is needed) 2017-03-19 17:45:29 +01:00
Antoine Riard
6f58bb20b3 heredoc ok 2017-03-18 19:00:46 +01:00
Antoine Riard
3a58fcd715 no more from pop_stack and ast_free 2017-03-18 17:38:26 +01:00
wescande
ccaa9bc159 faut arreter de coder les builtin avec le cul 2017-03-18 04:16:17 +01:00
wescande
c81d00343d rectif retour des while et until 2017-03-18 01:58:00 +01:00
wescande
aba3713a04 yeay 2017-03-18 00:26:34 +01:00
Jack Halford
4524fac2c8 plein de headers mis a jour avec mon nom 2017-03-17 22:59:56 +01:00
wescande
9078573edc tricks trick 2017-03-17 22:56:41 +01:00
wescande
0fbcf79789 some pb for execution 2017-03-17 20:45:27 +01:00
Antoine Riard
ad3525b9d6 end merge 2017-03-17 00:15:40 +01:00
Antoine Riard
10d30cedb1 merge en cours 2017-03-16 23:46:39 +01:00
Jack Halford
0c848e75d3 lexer NORM, bquote/dquote lexing refactoring 2017-03-16 23:17:33 +01:00
Jack Halford
2671bba0a4 removed lexer_lessand/greatand, some lexer norm 2017-03-16 19:08:49 +01:00
Jack Halford
f65f23b10f job control NORM 2017-03-16 18:46:27 +01:00
Jack Halford
bed9f1d6c2 mean cleanup 2017-03-16 15:04:21 +01:00
Jack Halford
6efd4c7e1f main refactoring 2017-03-16 14:20:44 +01:00
wescande
8b8259b353 Merge branch 'master' of github.com:jzck/42sh 2017-03-15 23:55:11 +01:00
wescande
21f5b377d9 some norme + debut de correction des var dans script 2017-03-15 23:55:00 +01:00
Antoine Riard
a68ad0af01 func ok 2017-03-15 20:08:04 +01:00
Antoine Riard
95186a124f func ok: 2017-03-15 19:57:08 +01:00
Jack Halford
6bfd442e82 #1, removed perror illegal function 2017-03-15 18:12:10 +01:00
Jack Halford
124fb2138a Makefile update: binary stripping. #1 easier to see illegal functions 2017-03-15 18:09:39 +01:00
Jack Halford
dec15b7ae2 close p.to_close before redirections 2017-03-15 17:57:31 +01:00
Jack Halford
9f88ed37db issue #92, inversion de O_RDONLY et O_WRONLY pour >& et <& 2017-03-15 17:50:33 +01:00
gwojda
dbdf84c00f fixe some leaks 2017-03-15 16:18:15 +01:00
wescande
7b6f848d00 minor tricks 2017-03-15 04:26:17 +01:00
wescande
cdfac4c3fc fix merge 2017-03-15 03:53:37 +01:00
wescande
f2c3ae16e9 glob a la norme + close an issue 2017-03-15 03:35:05 +01:00
Antoine Riard
7637b2b886 modifs execution if 2017-03-15 02:11:37 +01:00
Antoine Riard
c45cb705b0 better parsing et exec case , for 2017-03-15 01:58:01 +01:00
Antoine Riard
a54bd77444 divers modifs + better tree case 2017-03-15 00:48:59 +01:00
Antoine Riard
fc8dcb8d24 divers modifs + better tree case 2017-03-15 00:47:56 +01:00
Jack Halford
4539837339 issue #82 quick fix, dont know if this is a good idea 2017-03-15 00:05:35 +01:00
Antoine Riard
de5f4b2a46 math builtin 2017-03-14 23:06:26 +01:00
Jack Halford
9cabd2fb2e forgot to commit 2017-03-14 23:00:42 +01:00
Antoine Riard
36e0522fb3 math as a builtin 2017-03-14 22:58:22 +01:00
Antoine Riard
8791eae9c3 math as a builtin 2017-03-14 22:49:44 +01:00
Jack Halford
c6a23fb2ac no more custom parsing, all is done w/ cliopts 2017-03-14 21:51:40 +01:00
Jack Halford
4572a81c5a export finished, added cliopts 2017-03-14 21:11:28 +01:00
Antoine Riard
dc1662f754 modifs var 2017-03-14 00:55:16 +01:00
Antoine Riard
f02222d882 modifs var 2017-03-14 00:52:51 +01:00
Jack Halford
7216b0185f compile error 2017-03-14 00:16:51 +01:00
Jack Halford
65ef17b62c further subshell/brace launch re-design 2017-03-14 00:03:15 +01:00
Jack Halford
97a0a0f53f merge 2017-03-13 23:59:20 +01:00
Jack Halford
271748861e brace groups and subshell launching re-design 2017-03-13 23:58:17 +01:00
Jack Halford
1c6c22bbbd merge 2017-03-13 22:39:54 +01:00
Jack Halford
b7804d547a big refactoring of execution and process handling 2017-03-13 22:39:12 +01:00
Jack Halford
c167d80270 brace group execution done 2017-03-13 19:23:20 +01:00
Jack Halford
eb466c6c70 merge 2017-03-13 17:42:58 +01:00
Jack Halford
047f77abd6 issue #91 2017-03-13 17:42:00 +01:00
Jack Halford
f01a770b29 pas d'ajout a l'historique pour les lignes vides 2017-03-13 16:42:56 +01:00
Jack Halford
f5c35a73d8 heredoc with io_number OK 2017-03-13 16:27:07 +01:00
Jack Halford
163c93c0c2 issue #81, probleme de protection free historique, p-e resolu #77 aussi 2017-03-13 14:48:40 +01:00
Jack Halford
bfb7c13e94 fix historique 2017-03-13 14:29:23 +01:00
Jack Halford
4a46f6db57 heredoc fix 2017-03-13 14:13:33 +01:00
william
f74b323e8f rectif variable set but not used + #96 sur cd / 2017-03-12 23:32:16 +01:00
Jack Halford
9061e43bea new process group handling is goooooood 2017-03-12 22:01:25 +01:00
Antoine Riard
2e137390be with show me heredoc data 2017-03-11 19:57:27 +01:00
Jack Halford
230ff16f79 yes | head fixed 2017-03-11 18:33:09 +01:00
Jack Halford
971da39d1b fixed subshells normally 2017-03-11 16:06:39 +01:00
Antoine Riard
63ed4b64f4 better parsing if 2017-03-10 18:10:15 +01:00