Commit graph

202 commits

Author SHA1 Message Date
Jack Halford
b1f730a833 env ./42sh still making problems 2017-03-22 00:29:03 +01:00
Jack Halford
06b2ad21ba merged builtin_env 2017-03-21 22:09:49 +01:00
Jack Halford
36040d152a builtin_env seems stable, gonna merge 2017-03-21 22:08:27 +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
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
Jack Halford
95e828b7b7 please use SH_ERR to display error messages 2017-03-21 14:03:29 +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
28d5351c4a exit stauts alphabetic and setenv error assignement word 2017-03-21 01:45:03 +01:00
Antoine Riard
f47f07fa0b exit stauts alphabetic and setenv error assignement word 2017-03-21 01:41:57 +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
gwojda
b9e5321b5b bye bye DG 2017-03-20 18:18:34 +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
gwojda
3c39c485cb norme builtin 2017-03-20 14:39:20 +01:00
gwojda
5b5a4442e2 norme 2017-03-20 14:18:26 +01:00
Jack Halford
33f6c24b0e job control minor fixes 2017-03-20 11:49:00 +01:00
wescande
714b0854be catch fix on master 2017-03-20 11:37:57 +01:00
Jack Halford
f482f78254 data_init and get_fd refactoring 2017-03-20 09:56:58 +01:00
Jack Halford
90bfb7773d read usage 2017-03-20 08:09:07 +01:00
Jack Halford
7770426bab ca compile 2017-03-20 08:08:15 +01:00
Jack Halford
d0b13b7bd5 some norm 2017-03-19 22:34:49 +01:00
wescande
ac27fb4ce1 Merge branch 'master' of github.com:jzck/42sh 2017-03-19 17:45:32 +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
Jack Halford
dfaf728660 builtin_read many changes 2017-03-19 15:08:30 +01:00
william
37ef19cdfc rectif de variables sous linux 2017-03-18 23:59:12 +01:00
gwojda
6c955a4a44 fix leaks 2017-03-18 15:43:59 +01:00
gwojda
112e72d9ab fix export 2017-03-18 11:48:17 +01:00
wescande
ccaa9bc159 faut arreter de coder les builtin avec le cul 2017-03-18 04:16:17 +01:00
wescande
ac6aadc5b6 YOLOOOOOOOOOOOOOOOOOOOO 2017-03-18 00:54:05 +01:00
wescande
aba3713a04 yeay 2017-03-18 00:26:34 +01:00
Antoine Riard
50971a7e23 modifs math 2017-03-17 23:21:25 +01:00
Antoine Riard
a1cb831783 math correction 2017-03-17 23:17:48 +01:00
Jack Halford
8427ab28bf lexer_assignment_word factorizating: it doesnt exist anymore... 2017-03-17 20:23:51 +01:00
Antoine Riard
1ad56ece41 master steady, merged end 2017-03-17 00:22:47 +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
f3673b1006 merge 2017-03-16 16:40:58 +01:00
Jack Halford
8ea584a42c redirection printing on job control 2017-03-16 16:39:33 +01:00
Antoine Riard
38f52d2dc1 modifs math 2017-03-16 16:37:36 +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
Jack Halford
0cf371e58a merge 2017-03-15 22:03:26 +01:00
Jack Halford
85fbbe3d8a some norme, builtin_read refactoring 2017-03-15 21:54:30 +01:00
Antoine Riard
6401e1759f gestion d erreurs math builtin 2017-03-15 21:06:35 +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
wescande
d4c4722884 rectif setenv et mise a la norme. Ajout data init des IFS + data init du SHLVL 2017-03-15 16:34:16 +01:00
gwojda
c2b7a9e027 #107 2017-03-15 10:53:20 +01:00
gwojda
26583e9027 fix setenv #105' 2017-03-15 10:48:08 +01:00
Antoine Riard
80cfacb577 commit propre 2017-03-15 02:14:15 +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
bb9796f758 merge 2017-03-14 21:12:08 +01:00
Jack Halford
4572a81c5a export finished, added cliopts 2017-03-14 21:11:28 +01:00
gwojda
0d4f441670 rip leaks 2017-03-14 16:37:40 +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
271748861e brace groups and subshell launching re-design 2017-03-13 23:58:17 +01:00
Jack Halford
c167d80270 brace group execution done 2017-03-13 19:23:20 +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
6b78971807 heredoc changes 2017-03-13 16:11:46 +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
william
d33f82d5fe trick pour le vrai printf qui gère pas le %b 2017-03-10 15:01:12 +01:00
Jack Halford
a9799debda issue #72, tried to reset file descriptors but still not working 2017-03-09 15:24:00 +01:00
Jack Halford
6660c5ed2c issue #73 2017-03-09 14:35:49 +01:00
gwojda
01d8cbca7e correction bug sur control R + d'autres ptits trucs 2017-03-09 12:16:23 +01:00
Antoine Riard
4d13a2e6e6 end merge 2017-03-08 23:44:03 +01:00
Jack Halford
e711ffc927 issue #50 done 2017-03-08 13:07:46 +01:00
Antoine Riard
69732b44fe conflcit resolved 2017-03-07 19:43:59 +01:00
Antoine Riard
02286b88bf moar grammmar 2017-03-07 19:41:25 +01:00
Jack Halford
764c62cc45 changed header layout 2017-03-07 18:37:13 +01:00
wescande
7195207116 merging 2017-03-07 15:35:36 +01:00
Jack Halford
7018cfc326 no more atexit, we call builtin_exit at end of main or at ctrl D 2017-03-07 15:25:28 +01:00
wescande
b2af159f64 pour merge 2017-03-07 15:12:20 +01:00
Jack Halford
eb9a697ef4 merged bt_jobs 2017-03-07 15:10:13 +01:00
Jack Halford
a5f186eb59 new process logic 2017-03-07 15:05:04 +01:00
Antoine Riard
d30519ced2 with math 2017-03-07 14:40:44 +01:00
Antoine Riard
14be331b4e expr math doing 2017-03-07 12:22:05 +01:00
gwojda
1c41155c50 on a retrouvé le builtin history 2017-03-07 11:24:20 +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
wescande
ed0c3803b0 rectif builtin cd : ajout du -- pour stopper les args, ajout des messages d'erreurs pour trops d'arguments ou home not set 2017-03-03 20:13:55 +01:00
Jack Halford
418859e9e8 it compiles ! much more testing for simple commands to work 2017-03-03 16:51:18 +01:00
Jack Halford
3857b06785 execution much simpler with new parser, thx ariard! 2017-03-02 21:17:16 +01:00
Jack Halford
8084ffb6a1 pipes done 2017-02-21 22:42:13 +01:00