Commit Graph

61 Commits

Author SHA1 Message Date
8a592d6e57 remove bool header 2021-07-20 15:29:57 -04:00
a6d65c9029 ignore SIGINT 2021-07-19 22:40:39 -04:00
ae5a5b372a add help 2021-07-19 22:34:50 -04:00
a80bedf135 make cd respect environment variables 2021-07-17 22:11:11 -04:00
6cbfcaee9a launch using environment variables as arugments 2021-07-17 21:51:31 -04:00
56a6747e06 move the remove variable sysmbols function to utils 2021-07-17 21:27:39 -04:00
8f57501927 refactor remove $ symbol 2021-07-17 21:22:03 -04:00
daa9cf8673 remove new line 2021-07-17 21:12:02 -04:00
94a32f28f6 fix memory leaks 2021-07-17 20:55:06 -04:00
a41e25b12a add echo 2021-07-17 19:04:18 -04:00
f867a46565 refactor utils 2021-07-17 17:36:38 -04:00
71d74c3324 break in case of null terminator 2021-07-17 17:23:05 -04:00
ce9f6a321f add set variable builtin 2021-07-17 17:07:15 -04:00
b1dc92ba92 add check to free 2021-07-17 16:58:38 -04:00
13d46e8c60 fix memory leak 2021-07-17 16:54:00 -04:00
f580c03ebc add environ builtin 2021-07-17 14:42:27 -04:00
3598aa7969 remove unused define 2021-07-16 23:47:07 -04:00
66dcc66fd9 move comments to headers 2021-07-16 23:37:15 -04:00
9c5752e9a9 add environment variables 2021-07-16 22:52:26 -04:00
6c3f8259e9 make StringArrays NULL terminated 2021-07-16 14:16:53 -04:00
1cbe850a10 fix memory leak when user doesn't enter anything 2021-07-16 13:36:25 -04:00
e548acdb8a change the way string arrays are initialized 2021-07-16 13:35:29 -04:00
1b68196f16 add missing definitions to loop header 2021-07-07 00:21:55 -04:00
2d6303e311 check for failure on realloc 2021-07-07 00:00:31 -04:00
b9b6d60aff change variable type to size_t 2021-07-06 23:54:18 -04:00
cc153bd481 add memory cleanup at exit 2021-07-06 23:47:19 -04:00
fd4fd05f2c fix leak in child process 2021-07-06 23:35:13 -04:00
491aef5c49 add cd builtin 2021-07-06 15:11:59 -04:00
9d0615fbcd add checks before freeing memory 2021-07-06 15:00:57 -04:00
f87f138f42 fix zombie process 2021-06-28 14:03:32 -04:00
5506e06840 add basic launch functionality 2021-06-27 22:46:03 -04:00
5f1dad47a3 fix variable name 2021-06-27 21:19:06 -04:00
14330d1077 update prompt colors 2021-06-27 15:44:45 -04:00
e951ccb7ee add missing param to main documentation 2021-06-27 15:28:36 -04:00
abe1e7fa5e change builtin not existing to not be fatal 2021-06-27 13:32:33 -04:00
14b2c79c92 improve error handling 2021-06-27 00:17:03 -04:00
344fbc4eb5 validate calls to malloc and realloc 2021-06-26 23:13:51 -04:00
90019c46ba free hostname 2021-06-26 23:06:11 -04:00
8776bbd6fa add hostname 2021-06-26 23:05:27 -04:00
60004f08dc rename string array variable to make it clear what it is 2021-06-26 22:51:39 -04:00
4ea527064a add missing documentation for functions 2021-06-26 22:48:19 -04:00
907af65b94 move input to separate file 2021-06-26 22:38:22 -04:00
53e3c1e276 standardize format 2021-06-26 21:20:36 -04:00
5e5c9d8db3 move code to exit_shell function 2021-06-26 19:09:41 -04:00
5ce2096b2c add builtins 2021-06-26 19:06:30 -04:00
79e2b6697b add a string array helper 2021-06-26 18:47:02 -04:00
d727732947 fix invalid free 2021-06-26 17:42:46 -04:00
d39e6997cf add color to the console line 2021-06-20 12:02:38 -04:00
63f79993e7 add color definitions 2021-06-20 12:02:23 -04:00
838ee3d216 add comments 2021-06-19 23:10:20 -04:00