Commit graph

17 commits

Author SHA1 Message Date
6cd36a5ec5 fix(runtime): fix typo in waidpid
Reviewed-by: ElKowar
2022-10-28 08:12:25 +00:00
4e1a835ddc feat: add command substitutions with ()
This requires PreparedCommand's to work with OsStrings rather than
Strings.

Acked-by: cpli
Acked-by: ElKowar
2022-10-28 08:12:25 +00:00
65b50557c9 chore: add licenses 2022-10-28 08:12:25 +00:00
23f69a33e5 feat(builtins): use proc macro for builtins 2022-10-28 08:12:25 +00:00
bd23c3e40d fix: remove unneeded derives 2022-10-23 14:32:29 +00:00
2969d85f5e fix(runtime): use unwrap not expect for unreachable code
cpli says to "make illegal states unrepresentable"

Acked-by: cpli
2022-10-23 14:32:29 +00:00
092360bce6 feat(runtime): implement builtins, add help 2022-10-23 14:32:28 +00:00
6c759e57cc fix(runtime): set fg pgrp in all children
Before there was a race condition, where it relied on the scheduler
running the first child first.
2022-10-10 20:32:09 +00:00
f0e15804b4 refactor(runtime): don't use From<ref>
"the great thing about From is that you can from into from into from
into from into and it's still the same. don't do that"

Acked-by: cpli
2022-10-10 17:52:16 +00:00
fe3d05d36b fix(runtime): reset signal handlers in children
Ignored signals do not get reset on exec.
This allows children to properly suspend when needed.
2022-10-01 13:29:15 +00:00
78593f1667 feat(parser): parse double quoted strings 2022-10-01 13:29:15 +00:00
c1881bb7b2 feat(runtime): kill existing processes on error 2022-09-25 12:36:08 +00:00
924a7462bd fix(runtime): grab terminal even if error occured 2022-09-25 12:36:08 +00:00
f0698457ed feat(runtime): set foreground job properly 2022-09-25 12:36:08 +00:00
0bfa8b3c8f feat(runtime): add basic runtime 2022-09-24 12:42:59 +00:00
a271fb2301 feat(lineedit): add very basic readline 2022-09-20 12:03:32 +00:00
02f19d91ee feat(parser): implement parser 2022-09-15 21:20:26 +00:00