Skip to content

0verLighT/minishell

Repository files navigation

Minishell

42 | minshell This project has been created as part of the 42 curriculum by amartel, jdessoli

wakatime

Dev

to check

  • env -i
  • run into minishell program recived SIGfault
  • echo "'$a' + "$a"" -> echo '$a'
  • strace (command)
  • Crtl + c return code -> 130

parsing

  • | first word return an error
  • make redirection
  • make heredoc
  • [ ]

expand

built-in

  • env
  • pwd
  • cd
  • export
  • unset
  • exit
  • echo
    • -n

built-in logic

Macos issue (Meson)

If libreadline is not found in pkg-config, at first check if it's already installed with this command:

pkg-config --libs readline

If it returns something like -L/opt/homebrew/Cellar/readline/8.3.3/lib -lreadline then you can add libreadline to your PKG_CONFIG_PATH:

export PKG_CONFIG_PATH=$(brew --prefix readline)/8.3.3/lib/pkgconfig:$PKG_CONFIG_PATH"

otherwise, you can install it with Homebrew:

brew install readline

About

42 | Minishell ???/100

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors