Switched from GNU Readline to custom Readline function

to make arsh more compatible with other Unix-Like systems

- Fixed small memory leak
This commit is contained in:
Aleksandr Lebedev 2026-02-19 16:13:34 +01:00
parent b5b02da752
commit e96ae4b4a2
2 changed files with 37 additions and 6 deletions

View file

@ -6,8 +6,9 @@ Simple shell for Unix-like systems written in C, that has a funny name (for germ
- ~cd~ builtin command
- ~exit~ builtin command
- ~CTRL+C~ stops running command
- Custom ~readline~ function
* Build
To build it, you need ~readline~ library. Then use
To build it, you don't need any external dependencies. Example with ~gcc~:
#+begin_src shell
gcc main.c -O3 -lreadline -o arsh
gcc main.c -O3 -o arsh
#+end_src