chore (todo): update todo
This commit is contained in:
parent
c41ea664c0
commit
df327180cb
46
README.md
46
README.md
@ -25,49 +25,9 @@ A lot of amazing shell stuff
|
||||
|
||||
|
||||
## TODO
|
||||
- [ ] export without arguments
|
||||
- [ ] ft_free_arr_safe in environment mess
|
||||
- [ ] builtins not first in pipeline? wtf is happening HAHAHAHAHAH its not using builtin, but core-utils
|
||||
- [ ] Remove -c option parsing as split can break
|
||||
- [ ] Only `""` as input shows command not found, that invalid
|
||||
- [ ] CTRL+\ during `sleep 5` should do nothing, but returns a new prompt
|
||||
- [ ] echo "hello" > /root/protected.txt gives the error but still prints
|
||||
- [ ] cat < filenoexit returns `minishell: minishell: unable to write to temp file: No such file or directory` but we're not writin
|
||||
- [x] Find absolute path for command input ('/', './', 'cmd')
|
||||
- [x]Add heredoc to tokenizer
|
||||
- [x] Environment to `t_list`
|
||||
- [x] Get environment array (export)
|
||||
- [x] Set environment variable (export)
|
||||
- [x] Simple builtin export
|
||||
- [x] builtins
|
||||
- [x] Preliminary signals
|
||||
- [x] Define struct for commands, something like (
|
||||
```c
|
||||
typedef struct s_command
|
||||
{
|
||||
char *command;
|
||||
char *path;
|
||||
char **args;
|
||||
int fd_in;
|
||||
int fd_out;
|
||||
} t_command;
|
||||
```
|
||||
)
|
||||
- [x] Make the `executor`, run a command
|
||||
- [x] Make a parser to create a command list
|
||||
- [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.
|
||||
- [x] Expand \$ vars & support \$ ~?
|
||||
* [x] $var
|
||||
* [x] $?
|
||||
* [ ] ~
|
||||
- [x] export without arguments
|
||||
- [ ] ft_free_arr_safe in environment mess
|
||||
- [x] builtins not first in pipeline? wtf is happening HAHAHAHAHAH its not using builtin, but core-utils
|
||||
- CTRL+C on input line results in exit code 130 in bash. -> this is signal global
|
||||
- `cat | cat | ls` isn't blocking. (processes appear to be active while parent moves on)
|
||||
- `echo $USER" $PWD` -> match quotes and throw error.
|
||||
- CB command to change banner
|
||||
- __Bonus:__ Command tree for &&, ||, *
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user