PatrickMckay1998 / atlas-simple_shell

0 stars 0 forks source link

Handle command lines with arguments #13

Open PatrickMckay1998 opened 1 month ago

PatrickMckay1998 commented 1 month ago

We have an understanding of what needs to go into starting our shell program, asking for a command then turning that command into a token using strtok.

Our next hurdle is taking that command and executing that command.

We know we will be using fork and execve.

We have our ingredients we just need to put them together.

PatrickMckay1998 commented 1 month ago

I have been looking into getenv() to use in our program, will add it to my test_function and see what I can do with it. I am curious if I need to use it before execve because part of the execve syntax includes the environment (Don't quote me on that)