diff --git a/README.md b/README.md new file mode 100644 index 0000000..ac1c1be --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# ash + +A simple shell written in C. + +## Features: + - Redirections + - line-editing + - globbing + - inhibitor + - auto-completion (bash like) + - variables + - history + - aliases + - separators (';', '&&', '||') + - custom prompt + +### Mising features: + - job control diff --git a/src/redirections/redirection_manager.c b/src/redirections/redirection_manager.c index d3d96ec..4c41424 100644 --- a/src/redirections/redirection_manager.c +++ b/src/redirections/redirection_manager.c @@ -90,7 +90,7 @@ bool command_format_is_invalid(char **cmds, env_t *env, int *return_values) env->vars = my_setenv(env->vars, "?", "1"); return (true); } else if (redirections_are_invalid(cmds[i])) { - env->env = my_setenv(env->vars, "?", "1"); + env->vars = my_setenv(env->vars, "?", "1"); return (true); } }