mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-03-15 11:26:51 +01:00
「🔨」 fix: Can compile on nixos
This commit is contained in:
8
.direnv/bin/nix-direnv-reload
Executable file
8
.direnv/bin/nix-direnv-reload
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
dir="$(realpath $(dirname ${BASH_SOURCE[0]})/../..)"
|
||||||
|
_nix_direnv_force_reload=1 direnv exec "$dir" true
|
||||||
|
direnv reload
|
||||||
|
# direnv reload updates the mtime of .envrc. Also update the timestamp of the
|
||||||
|
# profile_rc file to keep track that we actually are up to date.
|
||||||
|
touch $dir/.direnv/{nix,flake}-profile-*.rc
|
||||||
|
|
1
.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa
Symbolic link
1
.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/adjoly/42/ft_minipowershell/.direnv/flake-profile.46798
|
@ -0,0 +1 @@
|
|||||||
|
|
2
Makefile
2
Makefile
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
NAME = minishell
|
NAME = minishell
|
||||||
|
|
||||||
CC = cc
|
CC = clang
|
||||||
|
|
||||||
OBJSDIR = obj/
|
OBJSDIR = obj/
|
||||||
|
|
||||||
|
@ -14,8 +14,8 @@
|
|||||||
#ifndef MINISHELL_H
|
#ifndef MINISHELL_H
|
||||||
# define MINISHELL_H
|
# define MINISHELL_H
|
||||||
|
|
||||||
# include <readline/readline.h>
|
|
||||||
# include <stdio.h>
|
# include <stdio.h>
|
||||||
|
# include <readline/readline.h>
|
||||||
# include <stdlib.h>
|
# include <stdlib.h>
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
# include "libft.h"
|
# include "libft.h"
|
||||||
|
@ -6,15 +6,15 @@
|
|||||||
# By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ #
|
# By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2024/01/22 07:21:18 by mmoussou #+# #+# #
|
# Created: 2024/01/22 07:21:18 by mmoussou #+# #+# #
|
||||||
# Updated: 2024/04/30 10:59:10 by mmoussou ### ########.fr #
|
# Updated: 2024/05/13 17:33:16 by adjoly ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
SHELL = bash
|
SHELL = bash
|
||||||
|
|
||||||
CC = gcc
|
CC = clang
|
||||||
|
|
||||||
CFLAGS = -Wall -Werror -Wextra
|
CFLAGS = -Wall -Werror -Wextra -pipe -fPIE
|
||||||
|
|
||||||
INCLUDE = ./include
|
INCLUDE = ./include
|
||||||
|
|
||||||
|
BIN
libft/libft.a
Normal file
BIN
libft/libft.a
Normal file
Binary file not shown.
BIN
libft/src/char/ft_isalnum.o
Normal file
BIN
libft/src/char/ft_isalnum.o
Normal file
Binary file not shown.
BIN
libft/src/char/ft_isalpha.o
Normal file
BIN
libft/src/char/ft_isalpha.o
Normal file
Binary file not shown.
BIN
libft/src/char/ft_isascii.o
Normal file
BIN
libft/src/char/ft_isascii.o
Normal file
Binary file not shown.
BIN
libft/src/char/ft_isdigit.o
Normal file
BIN
libft/src/char/ft_isdigit.o
Normal file
Binary file not shown.
BIN
libft/src/char/ft_isprint.o
Normal file
BIN
libft/src/char/ft_isprint.o
Normal file
Binary file not shown.
BIN
libft/src/int/ft_abs.o
Normal file
BIN
libft/src/int/ft_abs.o
Normal file
Binary file not shown.
BIN
libft/src/int/ft_max.o
Normal file
BIN
libft/src/int/ft_max.o
Normal file
Binary file not shown.
BIN
libft/src/int/ft_min.o
Normal file
BIN
libft/src/int/ft_min.o
Normal file
Binary file not shown.
BIN
libft/src/io/ft_printf.o
Normal file
BIN
libft/src/io/ft_printf.o
Normal file
Binary file not shown.
BIN
libft/src/io/ft_printf_fd.o
Normal file
BIN
libft/src/io/ft_printf_fd.o
Normal file
Binary file not shown.
BIN
libft/src/io/ft_putchar_fd.o
Normal file
BIN
libft/src/io/ft_putchar_fd.o
Normal file
Binary file not shown.
BIN
libft/src/io/ft_putendl_fd.o
Normal file
BIN
libft/src/io/ft_putendl_fd.o
Normal file
Binary file not shown.
BIN
libft/src/io/ft_putnbr_fd.o
Normal file
BIN
libft/src/io/ft_putnbr_fd.o
Normal file
Binary file not shown.
BIN
libft/src/io/ft_putstr_fd.o
Normal file
BIN
libft/src/io/ft_putstr_fd.o
Normal file
Binary file not shown.
BIN
libft/src/io/ft_putuhex_fd.o
Normal file
BIN
libft/src/io/ft_putuhex_fd.o
Normal file
Binary file not shown.
BIN
libft/src/linked_lists/ft_lstadd_back.o
Normal file
BIN
libft/src/linked_lists/ft_lstadd_back.o
Normal file
Binary file not shown.
BIN
libft/src/linked_lists/ft_lstadd_front.o
Normal file
BIN
libft/src/linked_lists/ft_lstadd_front.o
Normal file
Binary file not shown.
BIN
libft/src/linked_lists/ft_lstclear.o
Normal file
BIN
libft/src/linked_lists/ft_lstclear.o
Normal file
Binary file not shown.
BIN
libft/src/linked_lists/ft_lstdelone.o
Normal file
BIN
libft/src/linked_lists/ft_lstdelone.o
Normal file
Binary file not shown.
BIN
libft/src/linked_lists/ft_lstiter.o
Normal file
BIN
libft/src/linked_lists/ft_lstiter.o
Normal file
Binary file not shown.
BIN
libft/src/linked_lists/ft_lstlast.o
Normal file
BIN
libft/src/linked_lists/ft_lstlast.o
Normal file
Binary file not shown.
BIN
libft/src/linked_lists/ft_lstmap.o
Normal file
BIN
libft/src/linked_lists/ft_lstmap.o
Normal file
Binary file not shown.
BIN
libft/src/linked_lists/ft_lstnew.o
Normal file
BIN
libft/src/linked_lists/ft_lstnew.o
Normal file
Binary file not shown.
BIN
libft/src/linked_lists/ft_lstsize.o
Normal file
BIN
libft/src/linked_lists/ft_lstsize.o
Normal file
Binary file not shown.
BIN
libft/src/mem/ft_bzero.o
Normal file
BIN
libft/src/mem/ft_bzero.o
Normal file
Binary file not shown.
BIN
libft/src/mem/ft_calloc.o
Normal file
BIN
libft/src/mem/ft_calloc.o
Normal file
Binary file not shown.
BIN
libft/src/mem/ft_free.o
Normal file
BIN
libft/src/mem/ft_free.o
Normal file
Binary file not shown.
BIN
libft/src/mem/ft_memchr.o
Normal file
BIN
libft/src/mem/ft_memchr.o
Normal file
Binary file not shown.
BIN
libft/src/mem/ft_memcmp.o
Normal file
BIN
libft/src/mem/ft_memcmp.o
Normal file
Binary file not shown.
BIN
libft/src/mem/ft_memcpy.o
Normal file
BIN
libft/src/mem/ft_memcpy.o
Normal file
Binary file not shown.
BIN
libft/src/mem/ft_memmove.o
Normal file
BIN
libft/src/mem/ft_memmove.o
Normal file
Binary file not shown.
BIN
libft/src/mem/ft_memset.o
Normal file
BIN
libft/src/mem/ft_memset.o
Normal file
Binary file not shown.
BIN
libft/src/stack/ft_stackadd_back.o
Normal file
BIN
libft/src/stack/ft_stackadd_back.o
Normal file
Binary file not shown.
BIN
libft/src/stack/ft_stackadd_front.o
Normal file
BIN
libft/src/stack/ft_stackadd_front.o
Normal file
Binary file not shown.
BIN
libft/src/stack/ft_stacklast.o
Normal file
BIN
libft/src/stack/ft_stacklast.o
Normal file
Binary file not shown.
BIN
libft/src/stack/ft_stacknew.o
Normal file
BIN
libft/src/stack/ft_stacknew.o
Normal file
Binary file not shown.
BIN
libft/src/stack/ft_stacksize.o
Normal file
BIN
libft/src/stack/ft_stacksize.o
Normal file
Binary file not shown.
BIN
libft/src/str/XtoX/ft_atoi.o
Normal file
BIN
libft/src/str/XtoX/ft_atoi.o
Normal file
Binary file not shown.
BIN
libft/src/str/XtoX/ft_atol.o
Normal file
BIN
libft/src/str/XtoX/ft_atol.o
Normal file
Binary file not shown.
BIN
libft/src/str/XtoX/ft_itoa.o
Normal file
BIN
libft/src/str/XtoX/ft_itoa.o
Normal file
Binary file not shown.
BIN
libft/src/str/XtoX/ft_ltoa.o
Normal file
BIN
libft/src/str/XtoX/ft_ltoa.o
Normal file
Binary file not shown.
BIN
libft/src/str/ft_split.o
Normal file
BIN
libft/src/str/ft_split.o
Normal file
Binary file not shown.
BIN
libft/src/str/ft_strchr.o
Normal file
BIN
libft/src/str/ft_strchr.o
Normal file
Binary file not shown.
BIN
libft/src/str/ft_strcmp.o
Normal file
BIN
libft/src/str/ft_strcmp.o
Normal file
Binary file not shown.
BIN
libft/src/str/ft_strdup.o
Normal file
BIN
libft/src/str/ft_strdup.o
Normal file
Binary file not shown.
BIN
libft/src/str/ft_striteri.o
Normal file
BIN
libft/src/str/ft_striteri.o
Normal file
Binary file not shown.
BIN
libft/src/str/ft_strjoin.o
Normal file
BIN
libft/src/str/ft_strjoin.o
Normal file
Binary file not shown.
BIN
libft/src/str/ft_strlcat.o
Normal file
BIN
libft/src/str/ft_strlcat.o
Normal file
Binary file not shown.
BIN
libft/src/str/ft_strlcpy.o
Normal file
BIN
libft/src/str/ft_strlcpy.o
Normal file
Binary file not shown.
BIN
libft/src/str/ft_strlen.o
Normal file
BIN
libft/src/str/ft_strlen.o
Normal file
Binary file not shown.
BIN
libft/src/str/ft_strmapi.o
Normal file
BIN
libft/src/str/ft_strmapi.o
Normal file
Binary file not shown.
BIN
libft/src/str/ft_strncmp.o
Normal file
BIN
libft/src/str/ft_strncmp.o
Normal file
Binary file not shown.
BIN
libft/src/str/ft_strnstr.o
Normal file
BIN
libft/src/str/ft_strnstr.o
Normal file
Binary file not shown.
BIN
libft/src/str/ft_strrchr.o
Normal file
BIN
libft/src/str/ft_strrchr.o
Normal file
Binary file not shown.
BIN
libft/src/str/ft_strtrim.o
Normal file
BIN
libft/src/str/ft_strtrim.o
Normal file
Binary file not shown.
BIN
libft/src/str/ft_substr.o
Normal file
BIN
libft/src/str/ft_substr.o
Normal file
Binary file not shown.
BIN
libft/src/str/ft_tolower.o
Normal file
BIN
libft/src/str/ft_tolower.o
Normal file
Binary file not shown.
BIN
libft/src/str/ft_toupper.o
Normal file
BIN
libft/src/str/ft_toupper.o
Normal file
Binary file not shown.
BIN
obj/src/env/env_cmd.o
vendored
Normal file
BIN
obj/src/env/env_cmd.o
vendored
Normal file
Binary file not shown.
BIN
obj/src/env/env_list/ft_envadd_back.o
vendored
Normal file
BIN
obj/src/env/env_list/ft_envadd_back.o
vendored
Normal file
Binary file not shown.
BIN
obj/src/env/env_list/ft_envadd_front.o
vendored
Normal file
BIN
obj/src/env/env_list/ft_envadd_front.o
vendored
Normal file
Binary file not shown.
BIN
obj/src/env/env_list/ft_envclear.o
vendored
Normal file
BIN
obj/src/env/env_list/ft_envclear.o
vendored
Normal file
Binary file not shown.
BIN
obj/src/env/env_list/ft_envdelone.o
vendored
Normal file
BIN
obj/src/env/env_list/ft_envdelone.o
vendored
Normal file
Binary file not shown.
BIN
obj/src/env/env_list/ft_envlast.o
vendored
Normal file
BIN
obj/src/env/env_list/ft_envlast.o
vendored
Normal file
Binary file not shown.
BIN
obj/src/env/env_list/ft_envnew.o
vendored
Normal file
BIN
obj/src/env/env_list/ft_envnew.o
vendored
Normal file
Binary file not shown.
BIN
obj/src/env/env_list/ft_envsize.o
vendored
Normal file
BIN
obj/src/env/env_list/ft_envsize.o
vendored
Normal file
Binary file not shown.
BIN
obj/src/is_str.o
Normal file
BIN
obj/src/is_str.o
Normal file
Binary file not shown.
BIN
obj/src/main.o
Normal file
BIN
obj/src/main.o
Normal file
Binary file not shown.
BIN
obj/src/parsing/get_infile.o
Normal file
BIN
obj/src/parsing/get_infile.o
Normal file
Binary file not shown.
BIN
obj/src/parsing/get_outfile.o
Normal file
BIN
obj/src/parsing/get_outfile.o
Normal file
Binary file not shown.
BIN
obj/src/parsing/split_cmd.o
Normal file
BIN
obj/src/parsing/split_cmd.o
Normal file
Binary file not shown.
BIN
obj/src/parsing/split_pipe.o
Normal file
BIN
obj/src/parsing/split_pipe.o
Normal file
Binary file not shown.
BIN
obj/src/prompt/get_hostname.o
Normal file
BIN
obj/src/prompt/get_hostname.o
Normal file
Binary file not shown.
BIN
obj/src/prompt/get_prompt.o
Normal file
BIN
obj/src/prompt/get_prompt.o
Normal file
Binary file not shown.
BIN
obj/src/prompt/get_pwd.o
Normal file
BIN
obj/src/prompt/get_pwd.o
Normal file
Binary file not shown.
@ -6,10 +6,11 @@
|
|||||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/04/24 11:18:04 by adjoly #+# #+# */
|
/* Created: 2024/04/24 11:18:04 by adjoly #+# #+# */
|
||||||
/* Updated: 2024/05/09 18:05:14 by adjoly ### ########.fr */
|
/* Updated: 2024/05/13 17:26:21 by adjoly ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include <readline/readline.h>
|
#include <readline/readline.h>
|
||||||
#include <readline/history.h>
|
#include <readline/history.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
Reference in New Issue
Block a user