Commit Graph

14 Commits

Author SHA1 Message Date
iridiumR f99caf42f3
feat(signal): change the behaviour of SIGINT
In previous versions, when a SIGINT was received, the program would exit
if there were no child processes, now the behavior is changed to not
exit and start a new line.
2022-09-20 22:29:59 +08:00
iridiumR 5d3b5c5767
Revert "feat(line): add history record"
file descriptor and fork() is a mess.

This reverts commit 53bee9dfb0.
2022-09-19 09:34:14 +08:00
iridiumR d9f5d5a708
perf: fix something 2022-09-18 23:22:20 +08:00
iridiumR 54ea6337e9
fix(history): fix history file write bug 2022-09-18 22:35:31 +08:00
iridiumR 53bee9dfb0
feat(line): add history record
When the program exits, the history will be saved in ~/.fish_history
2022-09-18 22:12:57 +08:00
iridiumR 7e74a8fd45
fix(soft-irq): fix SIGINT exit error 2022-09-18 20:43:39 +08:00
iridiumR c57d46a171
feat(builtin): add clear command 2022-09-18 14:53:38 +08:00
iridiumR bbec5fbc2e
feat(builtin): add built-in command 2022-09-18 14:46:23 +08:00
iridiumR d78af54b6c
feat(exec): add exec 2022-09-18 13:44:40 +08:00
iridiumR 7d7030a2d9
chore: change struct 2022-09-18 13:14:54 +08:00
iridiumR 14dc5a0975
feat(line): add line reading and spliting 2022-09-18 12:22:59 +08:00
iridiumR c2b3c98e31
fix(main): fix SIGINT exit 2022-09-18 11:44:39 +08:00
iridiumR 88cabfb434
feat(main): add SIGINT detect 2022-09-18 11:24:31 +08:00
iridiumR 69229a3285
feat: new shell form hell 2022-09-18 11:15:07 +08:00