Skip to content

Commit

Permalink
update README and fix shlvl segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
emSali committed Aug 12, 2023
1 parent ba8c915 commit 18d0fed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ SEGFAULTS:
- [X] 'export1', 'unset123123', 'envaaa'
- [X] Ctrl-C
- [X] Ctrl + \
- [] Ctrl+\ in minishell lvl 2 is quitting
- [] Ctrl+C in minishell lvl 2 is not printing correctly
- [X] Ctrl+\ in minishell lvl 2 is quitting
- [X] Ctrl+C in minishell lvl 2 is not printing correctly
- [X] export 1hello (number in first place mot allowd)
- [X] export A =hello (cannot have space)
- [X] export: new elements not sorted in list
- [] several Heredocs
- [X] several Heredocs
- [X] export several objects
- [X] unset several objects
- [X] decrease exit nr with 255 (limit long max int)
Expand Down
4 changes: 2 additions & 2 deletions utils/shlvl.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: esali <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/08/12 15:06:00 by esali #+# #+# */
/* Updated: 2023/08/12 18:08:36 by esali ### ########.fr */
/* Updated: 2023/08/12 19:49:32 by esali ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -48,7 +48,7 @@ void increase_shlvl(void)
env = ft_getenv("SHLVL");
if (!env)
shlvl = 1;
if (is_digit(env) == 0)
else if (is_digit(env) == 0)
shlvl = 1;
else if (is_digit(env) == 0)
shlvl = 1;
Expand Down

0 comments on commit 18d0fed

Please sign in to comment.