Commit graph

40 commits

Author SHA1 Message Date
203aeb5540 fix infinite loop on command not found 2026-01-26 18:15:05 -07:00
34ddc6dcaf update readme 2026-01-26 11:15:59 -07:00
db4653a2d2 allow chaining commands with '&&' 2026-01-26 11:03:09 -07:00
df20aeeda6 Update src/system/linux/linux.c 2026-01-22 19:32:39 -06:00
c3199feafd c89 msh_executE 2026-01-22 17:13:40 -07:00
313d344212 don't return from command not found 2026-01-22 17:11:20 -07:00
4814482cb2 fix kill message 2026-01-22 17:09:35 -07:00
0fff4a10c3 linux: handle programs crashing with segfault and such. 2026-01-22 17:01:04 -07:00
6fd2ff9ecf turn msh_read_input into msh_loop to prepare for porting to classic mac os 2026-01-22 15:59:59 -07:00
0068e8da25 fix on 32-bit 2026-01-22 14:24:47 -07:00
9ebc058188 figured out how to make the block header smaller actually 2026-01-22 11:51:33 -07:00
302b6cdc85 fix typo 2026-01-22 11:44:18 -07:00
3028f3ee33 simple tricks to reduce memory/binary size 2026-01-22 11:42:33 -07:00
d94875c788 small random housekeeping stuff i found 2026-01-22 10:08:44 -07:00
fe8e49148b revert fixing the SIZE_TYPE appearently 2026-01-21 21:10:29 -07:00
8ac097e3da fixed SIZE_TYPE 2026-01-21 21:09:19 -07:00
5e510ddd9d handle signals (squashed commit) 2026-01-21 20:48:04 -07:00
0aa2ab39eb i give up 2026-01-21 20:03:20 -07:00
8d8db38576 don't add quotes to the command when we use them, support escaping them, and don't support using single quotes in place of them 2026-01-21 14:21:25 -07:00
20c9b01967 "properly handle running out of space in the buffer (which is now lowered too)" 2026-01-21 14:14:38 -07:00
1940122a89 "fix backspace, get left/right working (in insert mode though...)" 2026-01-21 14:10:08 -07:00
0ed0d32b27 "introduce msh_move_cursor so we can abstrace backspace" 2026-01-21 13:51:42 -07:00
ab3ef8bb8b path is now an owned string since we actually need to make a copy that's an array 2026-01-21 13:34:25 -07:00
118f706b00 "add a few constructs" 2026-01-21 11:21:23 -07:00
e7a7447550 start/end input capture more appropriately so that launched applications don't default to raw mode 2026-01-20 18:21:51 -07:00
a95a483710 quickly impl ^C 2026-01-20 17:26:16 -07:00
039d581c45 smallish change of plans actually, msh_read_input should return the ascii character input'd so that things like ^C can be abstracted per platform 2026-01-20 17:23:31 -07:00
fb3e073565 use raw mode for linux so that I can later implement history and such. also update msh_read_input doc because i think it's gonna return more stuff soon 2026-01-20 17:09:58 -07:00
efeeb73ef5 fix buffer overrun and uninitialized variable 2026-01-19 22:07:08 -07:00
efe2bf1ba5 caught some small mistakes in a later code review 2026-01-19 19:21:13 -07:00
ce504f4448 typing a directory alone cds you to it 2026-01-19 17:33:05 -07:00
e0a751eec3 environment passthrough 2026-01-19 17:12:32 -07:00
2a3679b272 path and cd builtin 2026-01-19 15:03:38 -07:00
294261bdc7 don't fork upon empty commands in linux's msh_execute 2026-01-15 22:29:53 -07:00
542a6f41ed Update README.md 2026-01-15 23:15:30 -06:00
a6b0234183 more properer lexer 2026-01-15 22:13:52 -07:00
0b96d7c8b3 update readme 2026-01-15 20:36:26 -07:00
20919695d0 move msh_callocate to new utils file 2026-01-15 20:23:27 -07:00
c5c46d7365 forgot to free args almost 2026-01-15 20:14:29 -07:00
7accc34991 initial commit 2026-01-15 20:10:55 -07:00