Commit graph

15 commits

Author SHA1 Message Date
5bb03eb2a2
[ruby] Implement bglist and bgkill 2022-01-21 17:39:52 -08:00
e7b73fa309 Add a few tests 2022-01-17 21:30:37 -08:00
9f0eb1378b Extract remaining code from main.rb 2022-01-17 21:30:30 -08:00
ec8baa2e1c Fix colour methods and use them 2022-01-17 19:17:42 -08:00
34150d64cb Extract job control to a separate class 2022-01-17 18:54:52 -08:00
97c597d628
Make ECHILD a verbose log instead, since it's not broken 2022-01-17 00:52:11 -08:00
ae89630e69
Add rubocop 2022-01-17 00:44:50 -08:00
ba8bf8088f
Use fork and exec and implement bg builtin 2022-01-17 00:42:19 -08:00
0d0bb73114
Use wordexp to support super fancy expansions
- Expands environment variables, e.g. $HOME -> /home/tina

- Expands tildes, e.g. ~/bin -> /home/queso/bin

- Performs command substitution, e.g. `date +%F` -> 2022-01-16
                                  or $(date +%F) -> 2022-01-16
2022-01-16 23:11:40 -08:00
9faa33fbf2
Perform proper shell word splitting and improve logging 2022-01-16 16:31:45 -08:00
01b0983f79
Use readline for proper editing and history 2022-01-16 15:05:54 -08:00
69f1639128
Fix executing built-in commands 2022-01-16 15:04:10 -08:00
6e0b36fd21
Move built-ins to a separate class 2022-01-16 14:55:58 -08:00
b141d95b44 Add ruby/a1 entry point script 2022-01-16 14:55:23 -08:00
635f345017 Start working on a Ruby port 2022-01-16 14:08:01 -08:00