Commit graph

124 commits

Author SHA1 Message Date
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
Jack Halford
83bde42e02 data singleton and sigchld handler advancements 2016-12-12 00:43:03 +01:00
Jack Halford
09e823bf2b job control: retrieval of dat as a global g_data so signal handlers can access it 2016-12-10 18:26:09 +01:00
Jack Halford
4feaa64e08 exitstatus function, so i can set ? variable in one line with not memory handling. No more leaks, sexy debug macro DG(), valgrind suppression, gitignore 2016-12-10 00:20:59 +01:00
Jack Halford
9b85099485 env -i ./minishell quits and doesnt segfault. fixed behaviour for builtins in pipeline (fork when out isnt stdout) 2016-12-01 12:35:37 +01:00
Jack Halford
af6452358c libft submodule reinit because of detached head state 2016-11-29 20:40:53 +01:00
Jack Halford
3c0bd77766 libft 2016-11-28 19:31:19 +01:00
Jack Halford
b0e7229c54 stuck at dup2 2016-11-26 23:05:23 +01:00
Jack Halford
aa456796ac parsing virtually finished exept heredoc 2016-11-24 23:11:07 +01:00
Jack Halford
2f2e7c03b1 nice tree printing, starting to look good 2016-11-20 23:32:39 +01:00
Jack Halford
bce0f37b8e major stuff today: wrote a proper lexer based on finite state machines, quoting OK. next is finishing the parser, and history of line editing module 2016-11-18 23:16:32 +01:00
Jack Halford
74f9916047 input is now char* not dlist, started to write FSM for quoting git add --all 2016-11-18 00:00:32 +01:00
Jack Halford
e3725aa547 libft btree 2016-11-15 20:21:35 +01:00
Jack Halford
92f2557e7e libft btree 2016-11-13 23:59:34 +01:00
Jack Halford
79cc1f4e2a libft updated for btree 2016-11-12 23:54:33 +01:00
Jack Halford
fff4912306 some token stuff 2016-11-11 20:57:51 +01:00
Jack Halford
27e26a6211 token stuff 2016-11-11 00:38:15 +01:00
Jack Halford
76535c73c1 work of 10/11/16, started tokenization 2016-11-10 17:05:15 +01:00
Jack Halford
6359eac19f interactive shell with termcaps 2016-10-28 21:24:29 +02:00
Jack Halford
4c0e368997 did setenv, exit, 0 variable 2016-10-14 21:15:25 +02:00
Jack Halford
529e5aac59 libft 2016-09-27 05:32:31 +02:00
Jack Halford
cc3f6e37d3 first commit 2016-09-27 05:14:51 +02:00
Jack Halford
8fea9b6b57 first commit 2016-09-27 05:13:46 +02:00