summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-02-25using recursion on the rmdir file, the only difference now is that i kind of ↵Abdellah El Morabit
understand what recursion is
2025-02-25added the make file featureAbdellah El Morabit
2025-02-25fixed some bad code by calling it bad code in a comentAbdellah El Morabit
2025-02-25made the readme fileAbdellah El Morabit
2025-02-25dont know what i am even doing at this point, getting a segmentation fault ↵Abdellah El Morabit
while trying to delete an emty folder...
2025-02-24tested the features, only thing to do is work on the recursive removal of filesAbdellah El Morabit
2025-02-24i was getting errors becasue i was passing structures into the execute ↵Abdellah El Morabit
structure while it was expecting a const char; but i ended up splitting up the char using the split_command and passing thazt result into the variable which apparently fixes the problem
2025-02-23worked on the looping over the files / entries in a directoryAbdellah El Morabit
2025-02-22worked on the other features still encountering a lot of small problems and ↵Abdellah El Morabit
other discoveries but getting their, the program is almost finished
2025-02-22working on the recursive deletion of a folderAbdellah El Morabit
2025-02-22splitting the argument into the source and detinationAbdellah El Morabit
2025-02-22splitting the argument in to the source and the destination file, only for ↵Abdellah El Morabit
certain commands
2025-02-22still thinking on how to properly implement thisAbdellah El Morabit
2025-02-22working on the making a copy of a file, so reading the contents and making a ↵Abdellah El Morabit
new file and writing to it the contents of the previous file
2025-02-22working on the recursive deletion of filesAbdellah El Morabit
2025-02-22i think everything works except for the new features im planning on adding ↵Abdellah El Morabit
and the remove file/ directory permissions but i dont know how to do that yet
2025-02-20encountering one bug after an other, having trouble with the pointers and ↵Abdellah El Morabit
string readings
2025-02-19huge step in the code redesign got the core of the code working, now whats ↵Abdellah El Morabit
left is to work on small little features and then fine tune everything
2025-02-19renamed the ls command for better code readabilityAbdellah El Morabit
2025-02-19prototype for the featureAbdellah El Morabit
2025-02-19prototype for the featureAbdellah El Morabit
2025-02-19prototype for the featureAbdellah El Morabit
2025-02-19prototype for the featureAbdellah El Morabit
2025-02-19prototype for the featureAbdellah El Morabit
2025-02-19redesigned the main function, its way smaller nowAbdellah El Morabit
2025-02-19had to update the way the pwd command and the echo command work because of ↵Abdellah El Morabit
the new code design, echo now has a seperate function and pwd has to take in an argument and then cancel it, this is because of the code structure i commited earlier but instead of making a seperate code structure for every type of command ill just handle it in the commands that dont need it
2025-02-19working on the body of the new features of the shellAbdellah El Morabit
2025-02-19an array that stores all of the available commandsAbdellah El Morabit
2025-02-19this structure defines the data format for us to execute a command based on ↵Abdellah El Morabit
the user input
2025-02-19somehow made a function that exeutes the commands that it pulls from an ↵Abdellah El Morabit
array of commands and its working
2025-02-19Merge remote-tracking branch 'origin/master'Abdellah El Morabit
2025-02-19committing cmake filesAbdellah El Morabit
2025-02-18Reworked alot of code and featuresnasrlol
Signed-off-by: nasrlol <nsrddyn@gmail.com>
2025-02-18these are my curent findings on the getcwd command from the unistd.h librarynasrlol
Signed-off-by: nasrlol <nsrddyn@gmail.com>
2025-02-18started on the optimization of the code, i didnt like the if ladder so now ↵nasrlol
im working on altnerative and better way to do what it dit, this involves cycling thorgh a strutred array and executing the matching function, this should be more performant and give better code readability also added function prototypes and figured out the feature scope of de software Signed-off-by: nasrlol <nsrddyn@gmail.com>
2025-02-18implemented the clear function in the if else ladder, dont know if there is ↵nasrlol
a nicer way to do this, ill have to think about it Signed-off-by: nasrlol <nsrddyn@gmail.com>
2025-02-18again seg faults=nasrlol
Signed-off-by: nasrlol <nsrddyn@gmail.com>
2025-02-18handling seg faults againnasrlol
Signed-off-by: nasrlol <nsrddyn@gmail.com>
2025-02-18thought that clearing the terminal before showing the shell would give it a ↵nasrlol
more real experience Signed-off-by: nasrlol <nsrddyn@gmail.com>
2025-02-18handling segmentation faultnasrlol
Signed-off-by: nasrlol <nsrddyn@gmail.com>
2025-02-18started working on the change directory command, and im still reading the ↵nasrlol
documentation about how I should approach this, also made a clear command, found how to do this in the clear man pages, what I did was pretty simple, just using the clear terminal screen text sequence and clear scroll buffer text sequence Signed-off-by: nasrlol <nsrddyn@gmail.com>
2025-02-18ls is working nowAbdellah El Morabit
2025-02-18tested the ls code seperatly and it workedAbdellah El Morabit
2025-02-18was freeing a pointer before i used it for its purpose what made some things ↵Abdellah El Morabit
mall function
2025-02-17tried to fix the display of the files in a folder but still isnt working but ↵nasrlol
the seg faults are fixed properly Signed-off-by: nasrlol <nsrddyn@gmail.com>
2025-02-17tried to fix the display of the files in a folder but still isnt working but ↵nasrlol
the seg faults are fixed properly Signed-off-by: nasrlol <nsrddyn@gmail.com>
2025-02-17fixed the segmentation faultsAbdellah El Morabit
2025-02-17fixed the segmentation faultsAbdellah El Morabit
2025-02-13fixed the segmentation fault, and found a better way to impelment echonasrlol
2025-02-13fixed some basic program problems, but at the moment im having issue with a ↵nasrlol
segfault somehow somewhere