This commit is contained in:
whaffman 2025-02-28 01:10:40 +01:00
parent bc019e4c04
commit 8d6a2795c4

View File

@ -4,6 +4,14 @@ A lot of amazing shell stuff
- libreadline-dev
- libncurses-dev
## Edge Cases
- `cat $PWD/test` should expand,
- `cd -` : `bash: cd: OLDPWD not set`
- `cd ~` : does not expand ?
## TODO
- [x] Find absolute path for command input ('/', './', 'cmd')
- [x]Add heredoc to tokenizer
@ -27,15 +35,15 @@ A lot of amazing shell stuff
)
- [x] Make the `executor`, run a command
- [x] Make a parser to create a command list
- Add redirects, appends, pipe etc. File descriptor functions
- [x] Add redirects, appends, pipe etc. File descriptor functions
a command can have multiple redirects but only the last is used for stdout
Redirects take precedence over pipes, but pipes are still created and managed.
should it close the unused pipe-end?
all redirects are opened and closed, but only last fd is used.
multiple HEREDOCs can be nested, only last is used.
- Expand \$ vars & support \$?
* $var [x]
* $? [0]
- [x] Expand \$ vars & support \$?
* [x] $var
* [0] $?
- CB command to change banner
- __Bonus:__ Command tree for &&, ||, *