Commit graph

172 commits

Author SHA1 Message Date
wescande
f836bf2c53 c'est la faute a jack 2017-03-22 22:26:08 +01:00
gwojda
72c0a87dad libft norme OK 2017-03-22 17:23:14 +01:00
Antoine Riard
f9b39b5142 close #139 2017-03-22 15:36:22 +01:00
Antoine Riard
5765d495c6 Merge branch 'master' of https://github.com/jzck/42sh
"close #141"
2017-03-22 15:25:29 +01:00
Antoine Riard
3a04eeacfc close #141 2017-03-22 15:25:19 +01:00
Jack Halford
06b2ad21ba merged builtin_env 2017-03-21 22:09:49 +01:00
Antoine Riard
ad2855cebb less leaks but stll somes 2017-03-21 21:19:56 +01:00
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
151b4ec02d added ft_malloc 2017-03-21 16:08:26 +01:00
Jack Halford
2c4eedb94f changed malloc, to ft_malloc. what have I done... 2017-03-21 15:49:51 +01:00
Jack Halford
a5247bea82 Merge branch 'master' of https://github.com/jzck/42sh 2017-03-21 15:26:55 +01:00
Jack Halford
e34666665d error message in cd builtin: 2017-03-21 15:26:43 +01:00
Jack Halford
89fd444e84 job control fine tuning 2017-03-21 15:13:32 +01:00
gwojda
cc4a088f29 conflit 2017-03-21 14:55:52 +01:00
Jack Halford
95e828b7b7 please use SH_ERR to display error messages 2017-03-21 14:03:29 +01:00
gwojda
83ea52445a debut fixe completion 2017-03-21 13:55:16 +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
84bf7575c2 rectif exec of script + rectif job_control+ MOTHER FUCKER YEAH 2017-03-21 02:15:59 +01:00
Jack Halford
aebb4f7613 protection free_history_list 2017-03-20 21:26:02 +01:00
Jack Halford
09a5cbb927 rectif gestion fichier/dossier executé 2017-03-20 16:28:15 +01:00
Jack Halford
6a5784a91c ca compile 2017-03-20 16:10:53 +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
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
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
Jack Halford
d0b13b7bd5 some norm 2017-03-19 22:34:49 +01:00
Jack Halford
dfaf728660 builtin_read many changes 2017-03-19 15:08:30 +01:00
Antoine Riard
137aa1d976 protecting against malloc failure in parser 2017-03-18 19:20:00 +01:00
Antoine Riard
3a58fcd715 no more from pop_stack and ast_free 2017-03-18 17:38:26 +01:00
gwojda
40f852345e fix histo avec ! + completion multiligne + rematch 2017-03-18 15:20:38 +01:00
gwojda
cffec70bf1 dsl pr les makefile... 2017-03-18 14:15:47 +01:00
gwojda
01461bd036 fix leaks completion 2017-03-18 14:12:15 +01:00
wescande
ccaa9bc159 faut arreter de coder les builtin avec le cul 2017-03-18 04:16:17 +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
0fbcf79789 some pb for execution 2017-03-17 20:45:27 +01:00
Antoine Riard
d4ef4b319a master steady with new main 2017-03-17 00:05:10 +01:00
Antoine Riard
10d30cedb1 merge en cours 2017-03-16 23:46:39 +01:00
Antoine Riard
64d5500c8d main good 2017-03-16 22:30:02 +01:00
Jack Halford
8ea584a42c redirection printing on job control 2017-03-16 16:39:33 +01:00
Jack Halford
6efd4c7e1f main refactoring 2017-03-16 14:20:44 +01:00
Jack Halford
85fbbe3d8a some norme, builtin_read refactoring 2017-03-15 21:54:30 +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
f02222d882 modifs var 2017-03-14 00:52:51 +01:00
Jack Halford
5b4a1c9a94 issue #97 2017-03-13 18:02:58 +01:00
Antoine Riard
5c2bb40bf6 assignement word as word if in second position 2017-03-13 17:52:36 +01:00
Jack Halford
3ae1cf2100 merge resolved 2017-03-13 16:24:25 +01:00
Jack Halford
4f7b69b283 ca segfault avec cette ligne 2017-03-12 15:29:35 +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
Antoine Riard
bc97d45f44 correctif io number 2017-03-11 16:47:33 +01:00
Jack Halford
971da39d1b fixed subshells normally 2017-03-11 16:06:39 +01:00
Jack Halford
91a8e81c45 minor libft interface changes 2017-03-08 12:04:05 +01:00
wescande
9f8f9bb729 normalement les fonctions sont fonctionnelles. necessitent plus de test. 2017-03-08 04:49:50 +01:00
wescande
29aff9ebb7 exec en cours 2017-03-07 16:43:32 +01:00
wescande
7195207116 merging 2017-03-07 15:35:36 +01:00
wescande
7ae114fd55 permet la compilation en commentant exec_var 2017-03-07 12:19:10 +01:00
AntoHesse
f70f8bd3b5 exec var 2017-03-06 23:51:26 +01:00
Antoine Riard
1dbc4653fd expansion for + cleanage code get_reserved_word 2017-03-06 19:05:43 +01:00
wescande
d3821b9ac7 some correctif 2017-03-06 16:20:06 +01:00
Jack Halford
e645db2f0f changed libft preprocessor apple/linux dichotomy 2017-03-05 16:49:21 +01:00
william
eb6e104812 compilation sous linux possible, mise en commentaire des variables set but not used 2017-03-05 15:44:12 +01:00
Jack Halford
5159c30b67 new libft for pop 2017-03-03 16:59:21 +01:00
Jack Halford
3857b06785 execution much simpler with new parser, thx ariard! 2017-03-02 21:17:16 +01:00
Jack Halford
71e8d28263 libft change 2017-02-21 15:25:37 +01:00
wescande
10596c48d9 optimisation du backquotting + mise a la norme 2017-02-20 19:11:52 +01:00
Jack Halford
5e511b7441 libft update for GNL 2017-02-17 14:11:13 +01:00
Jack Halford
665c593f5d merged new lexer/line-edit architecture 2017-02-14 01:16:54 +01:00
Jack Halford
be6be17f2a bquotes expansion refactoring for future norm checks; still need to preventh field splitting for dquoted bquotes; also need to fuse bquote expansion into the globbing module 2017-02-14 00:42:41 +01:00
Jack Halford
2e0b6102ce bquotes expand correctly but segfault afterwards... 2017-02-13 15:31:21 +01:00
gwojda
ab66992500 prompt zsh style : quelques petits trucs a revoir 2017-02-10 18:22:50 +01:00
Jack Halford
e8cd4f45b0 started to work on lexer_stack 2017-02-10 00:38:45 +01:00
Jack Halford
5a033a8789 fcntl for saving fds, new option to distinguish interactive shell or not 2017-02-08 22:48:37 +01:00
Jack Halford
bb666ba0c6 escaped codes in makefile are now \e 2017-02-07 20:16:53 +01:00
wescande
8539dc9ddf libft with new makfile 2017-02-07 17:43:22 +01:00
Jack Halford
12d069d26b fix des problemes de compilations post-merge 2017-02-03 16:28:47 +01:00
wescande
59bbf8ab10 libft update 2017-02-01 19:55:39 +01:00
Gautier WOJDA
feac290fee Comportement de control C/D mise a jour (avec le bruit d'erreur pour control D) -- mise a jour de l'edition de lignes, quelques bugs resolus (merci wescande :p) 2017-02-01 16:54:15 +01:00
Jack Halford
9e3640aed1 maj libft 2017-01-31 16:43:46 +01:00
wescande
977238f69e premier commit. working. . . 2017-01-26 19:24:00 +01:00
Jack Halford
dfdf245b1a backquote work, still some segfaults, end of day commit 2017-01-12 18:09:16 +01:00
Jack Halford
ef400aa225 first effort towards subshells and backquotes, lexer done, execution done for subshells 2017-01-11 18:06:26 +01:00
Jack Halford
da285e7c1f removed debug messages in job control before merge 2017-01-10 12:34:27 +01:00
Jack Halford
0ec9313b4c pretty stable version of job control, ready to merge 2017-01-10 11:32:02 +01:00
Jack Halford
204d5b9795 pipelines broken in this commit 2017-01-09 16:01:09 +01:00
Jack Halford
d2982d89bc next to do: end of pipe doesnt terminate by itself 2017-01-03 15:36:53 +01:00
Jack Halford
4dcf3c319c stuff 2017-01-02 19:09:08 +01:00
Jack Halford
72b9e72fc8 days work, still a lot to do 2016-12-15 18:32:48 +01:00
Jack Halford
e3b344bbb9 big refactoring in progress, will finish tomorrow 2016-12-13 17:59:58 +01:00
Jack Halford
03671ed8ec libft 2016-12-13 12:59:02 +01:00
Jack Halford
6cfac2eaff job control advances, still have to do ctrl-z, fg, bg, jobs 2016-12-12 18:13:29 +01:00