Commit graph

41 commits

Author SHA1 Message Date
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
a01b7b76ab redirection now works with builtins! 2017-02-07 17:57:52 +01:00
Jack Halford
c56f9dac85 lexer_comment back onto master 2017-02-07 12:38:04 +01:00
Jack Halford
d7f5116eb0 looks promising 2017-02-07 02:07:47 +01:00
Jack Halford
bb52d35f4d starting to fix redirects 2017-02-06 23:49:58 +01:00
Jack Halford
156e1cb29c file redirections repaired 2017-02-06 16:51:34 +01:00
Jack Halford
62be4bc470 new architecture for redirection inside of fork(), chained redirects dont work properly yet 2017-02-03 14:11:34 +01:00
Jack Halford
0d8610ca65 exit statuses behave correctly now (like bash) 2017-02-02 00:56:16 +01:00
Jack Halford
62cdc4ca84 back to looking like the GNU tutorial 2017-02-01 17:30:45 +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
0ec9313b4c pretty stable version of job control, ready to merge 2017-01-10 11:32:02 +01:00
Jack Halford
9d02933f72 builtin_bg done, doesnt take arguments yet 2017-01-09 17:00:56 +01:00
Jack Halford
153b9aec79 pipelines fixed, job messaging better for notification & for builtin_jobs. still gotta fix cat (See previous commits msgs) 2017-01-09 16:26:54 +01:00
Jack Halford
204d5b9795 pipelines broken in this commit 2017-01-09 16:01:09 +01:00
Jack Halford
bbdaedef06 fg works with vim but not cat, probablty something to do w/ SIGTTIN or SIGTTOU. 2017-01-08 16:14:31 +01:00
Jack Halford
9e8939d588 cleanup after merge (few segfaults remained because of auto merge done the wrong way around. process_reset added 2017-01-02 21:31:20 +01:00
Jack Halford
4c63c30b04 merge 2017-01-02 19:11:47 +01:00
Jack Halford
4dcf3c319c stuff 2017-01-02 19:09:08 +01:00
Jack Halford
c9a39637da pipeend and pipestart bits in process attribute, env problems solved 2016-12-22 11:44:44 +01:00
Jack Halford
72b9e72fc8 days work, still a lot to do 2016-12-15 18:32:48 +01:00
Jack Halford
fc53e40a4f mostly compile-time error fixing 2016-12-14 23:26:29 +01:00
Jack Halford
e3b344bbb9 big refactoring in progress, will finish tomorrow 2016-12-13 17:59:58 +01:00
Jack Halford
a948a65cbb merged 2016-12-13 13:00:28 +01:00
Jack Halford
160810b3bc stuff i did before pulling 2016-12-13 12:58:18 +01:00
Jack Halford
87b9fab083 gonna add processes inside of job 2016-12-12 23:56:05 +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
4cfeb62747 job_control first commit: 2016-12-10 17:47:36 +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
d24633c9e6 execution functions changes: they now take reference of nodes, they now
delete nodes after operations (suffix).
2016-12-10 00:14:33 +01:00
Jack Halford
768d996b7a commit de reference 2016-12-03 15:37:50 +01:00
Jack Halford
2d631469e6 execution of &&/|| done, added aol_status and aol_search to data (aol=and_or_list) 2016-12-01 17:47:41 +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
07b8519239 added &&,|| and & operators to lexer/parser 2016-11-30 22:09:55 +01:00
Jack Halford
54a6cdecb0 pipes and redirection working 2016-11-29 20:30:36 +01:00
Jack Halford
569812ddcb pipeline working, added stack of old qstates to make the FSM adiabatic 2016-11-28 19:30:31 +01:00
Jack Halford
b59f05eb77 test.c to understant pipe() 2016-11-27 23:52:36 +01:00
Jack Halford
b0e7229c54 stuck at dup2 2016-11-26 23:05:23 +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
5f329666d3 more parsing and some exec 2016-11-14 18:50:18 +01:00
Jack Halford
92f2557e7e libft btree 2016-11-13 23:59:34 +01:00