Commit graph

31 commits

Author SHA1 Message Date
Lisa Milne
368a5cddfb remove more unnecessary objects from shell 2023-12-21 10:05:14 +10:00
Lisa Milne
8fee484f23 remove unnecessary objects from shell 2023-12-20 20:30:06 +10:00
Lisa Milne
7071a63dfa convert format of programs to always have main(argc,argv) 2023-12-19 14:36:09 +10:00
Lisa Milne
fe972ddd11 a bunch of little fixes 2023-12-18 21:44:02 +10:00
Lisa Milne
733ee75dd2 shell pathfill 2023-12-18 20:46:56 +10:00
Lisa Milne
79db978349 fix bug with ctrl+d leaving the tty in an unknown state 2023-12-17 17:40:27 +10:00
Lisa Milne
7ceb503fee add the start of shell history saving 2023-12-17 14:57:15 +10:00
Lisa Milne
a7f5087c7c add support for setuid/setguid on executable files 2023-12-16 14:30:29 +10:00
Lisa Milne
c52058dacb a few fixes and improvements to shell script parsing 2023-12-15 16:58:34 +10:00
Lisa Milne
c56fe770b9 conditional expressions in shell and scripts 2023-12-15 14:56:19 +10:00
Lisa Milne
9da752f308 add true and false shell builtins 2023-12-15 11:54:48 +10:00
Lisa Milne
e27dc7bddf fix bug when redirecting stdout to /dev/null 2023-12-15 01:23:32 +10:00
Lisa Milne
9ec6e0e26a shell piping and io redirects 2023-12-15 00:44:44 +10:00
Lisa Milne
e719b8686a some improvements to shell scripting 2023-12-14 18:59:15 +10:00
Lisa Milne
162d63f4e1 it is now possible to run shell scripts 2023-12-14 17:46:08 +10:00
Lisa Milne
376d425330 improved shell script parser 2023-12-14 17:19:07 +10:00
Lisa Milne
b6d539ec7f shell tabfill and history back in place, ability to set tty into raw mode added 2023-12-13 13:42:57 +10:00
Lisa Milne
abf9dbad6c various fixes to get the shell working better with a tty 2023-12-12 20:50:42 +10:00
Lisa Milne
d8604b3e3b so many shell bugs - builtins freeze the shell 2023-12-12 20:09:17 +10:00
Lisa Milne
0597769c61 get shell working with tty (also fix a bug that went unnoticed without a proper tty) 2023-12-12 18:39:45 +10:00
Lisa Milne
d2ba616d4f fix bug with prompt being written to terminal 2023-12-08 18:28:01 +10:00
Lisa Milne
bd75d0b3c9 update open() to work as it should with flags 2023-12-04 21:18:35 +10:00
Lisa Milne
755c79dd46 add a file type check to exec() 2023-12-03 16:27:33 +10:00
Lisa Milne
0fe4544107 libcurses (ncurses) starter, and switch less to using it 2023-11-28 22:33:20 +10:00
Lisa Milne
b070abf90d make the shell exit properly, and also handle children exiting properly 2023-11-27 21:46:33 +10:00
Lisa Milne
1f2c8d85f3 move libraries to actual libraries (/lib/lib*.so) 2023-11-27 19:01:52 +10:00
Lisa Milne
ccbb4fa408 shell history and tabfill 2023-11-26 19:54:37 +10:00
Lisa Milne
0e4fcf70b2 version bump, documentation 2023-11-26 15:13:04 +10:00
Lisa Milne
39ebcdc049 wait, waitpid, waitall, and get the shell using them 2023-11-26 14:24:37 +10:00
Lisa Milne
7ac6f677be start getting commands working again, and cleanup some old io workarounds 2023-11-26 12:18:48 +10:00
Lisa Milne
b34d9590cb move shell to /bin/sh (and shell.js) 2023-11-25 20:43:51 +10:00