GithubHelp home page GithubHelp logo

minishell's Introduction

minishell's People

Contributors

ala-na avatar hindlichir avatar

Watchers

 avatar

minishell's Issues

Error while using echo with redirections

Quand on utilise les redirections avec echo (ou n'importe quel autre build-in), le fichier est créé mais le script plante - On it 👀
Je parie sur une histoire de dup liée aux modifications que tu as fait pour que les redirections soient faites avant, je creuse tout ça 👊

Several problems with history

  • Empty commands and only-spaces commands should not be added to the history;
  • If a same command is typed several times in a row, it should be added only once to the history.

bad management of double piped heredoc

image

Is due to a bad management of redirection.
you need to execute redirection after parsing (launch heredoc, create file..) and save fd to redirect it before execution of simple command

env empty when launching with env -i

Bash :
image

Minishell :
image

Labeled as an enhancement (not specified by the subject, and doesn't crash).
To correct it, PWD and SHLVL should be initialized at launch (PWD : current pwd; SHLVL : 1).

`env -i ./minishell` does not launch

Screen Shot 2021-10-17 at 10 19 51 PM
Since there is no segfault or crash, it is not a serious mistake. But it does not behave the same way as bash.
NB: even executed via env -i, bash is able to run commands.

Makefile could be improved.

touch on a file in the libft and running make does not recompile the file nor the project. This can be solved by calling make -C libft in the project makefile instead of putting libft in the dependencies.
Also, touch on a .hfile does not recompile the project. This can be solved with the -MMD flags and the use of dependencies.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.